unix+vms wizard mode feedback (trunk only)

The message "only user <foo> may use wizard mode" formerly given
by the Unix and VMS ports was inadvertently rendered impossible to be
delivered when authorize_wizard_mode() was added to xxxmain.c nearly
3 years ago.
This commit is contained in:
nethack.rankin
2010-01-19 02:58:59 +00:00
parent c367969d60
commit 7500c21b02
2 changed files with 2 additions and 1 deletions

View File

@@ -575,6 +575,7 @@ authorize_wizard_mode()
#endif
if (pw && !strcmp(pw->pw_name, WIZARD_NAME)) return TRUE;
#endif /* WIZARD */
wiz_error_flag = TRUE; /* not being allowed into wizard mode */
return FALSE;
}