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

Function authorize_wizard_mode

sys/vms/vmsmain.c:472–479  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

470
471/* validate wizard mode if player has requested access to it */
472boolean
473authorize_wizard_mode(void)
474{
475 if (!strcmpi(nh_getenv("USER"), WIZARD_NAME))
476 return TRUE;
477 wiz_error_flag = TRUE; /* not being allowed into wizard mode */
478 return FALSE;
479}
480
481/* similar to above, validate explore mode access */
482boolean

Callers 1

set_playmodeFunction · 0.50

Calls 1

nh_getenvFunction · 0.50

Tested by

no test coverage detected