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

Function authorize_explore_mode

sys/unix/unixmain.c:639–652  ·  view source on GitHub ↗

similar to above, validate explore mode access */

Source from the content-addressed store, hash-verified

637
638/* similar to above, validate explore mode access */
639boolean
640authorize_explore_mode(void)
641{
642#ifdef SYSCF
643 if (sysopt.explorers && sysopt.explorers[0]) {
644 if (check_user_string(sysopt.explorers))
645 return TRUE;
646 }
647 iflags.explore_error_flag = TRUE; /* not allowed into explore mode */
648 return FALSE;
649#else
650 return TRUE; /* if sysconf disabled, no restrictions on explore mode */
651#endif
652}
653
654static void
655wd_message(void)

Callers

nothing calls this directly

Calls 1

check_user_stringFunction · 0.70

Tested by

no test coverage detected