MCPcopy Create free account
hub / github.com/NetHack/NetHack / authorize_wizard_mode

Function authorize_wizard_mode

sys/unix/unixmain.c:627–636  ·  view source on GitHub ↗

validate wizard mode if player has requested access to it */

Source from the content-addressed store, hash-verified

625
626/* validate wizard mode if player has requested access to it */
627boolean
628authorize_wizard_mode(void)
629{
630 if (sysopt.wizards && sysopt.wizards[0]) {
631 if (check_user_string(sysopt.wizards))
632 return TRUE;
633 }
634 iflags.wiz_error_flag = TRUE; /* not being allowed into wizard mode */
635 return FALSE;
636}
637
638/* similar to above, validate explore mode access */
639boolean

Callers

nothing calls this directly

Calls 1

check_user_stringFunction · 0.70

Tested by

no test coverage detected