| 652 | } |
| 653 | |
| 654 | static void |
| 655 | wd_message(void) |
| 656 | { |
| 657 | if (iflags.wiz_error_flag) { |
| 658 | if (sysopt.wizards && sysopt.wizards[0]) { |
| 659 | char *tmp = build_english_list(sysopt.wizards); |
| 660 | pline("Only user%s %s may access debug (wizard) mode.", |
| 661 | strchr(sysopt.wizards, ' ') ? "s" : "", tmp); |
| 662 | free(tmp); |
| 663 | } else { |
| 664 | You("cannot access debug (wizard) mode."); |
| 665 | } |
| 666 | wizard = FALSE; /* (paranoia) */ |
| 667 | if (!iflags.explore_error_flag) |
| 668 | pline("Entering explore/discovery mode instead."); |
| 669 | } else if (iflags.explore_error_flag) { |
| 670 | You("cannot access explore mode."); /* same as enter_explore_mode */ |
| 671 | discover = iflags.deferred_X = FALSE; /* (more paranoia) */ |
| 672 | } else if (discover) |
| 673 | You("are in non-scoring explore/discovery mode."); |
| 674 | } |
| 675 | |
| 676 | /* |
| 677 | * Add a slash to any name not ending in /. There must |
no test coverage detected