(comtch): Parameter god permitted execution of any command, even when
com->c_permit disagreed. Doesn't make sense and is inconsistent with output of list. Remove parameter. The only command affected is break.
This commit is contained in:
parent
0b037fc23c
commit
8329b8884a
4 changed files with 5 additions and 7 deletions
|
@ -62,8 +62,7 @@ dispatch(char *buf, char *redir)
|
|||
struct cmndstr *command;
|
||||
int cmd;
|
||||
|
||||
cmd = comtch(player->argp[0], player_coms,
|
||||
player->ncomstat, player->god);
|
||||
cmd = comtch(player->argp[0], player_coms, player->ncomstat);
|
||||
if (cmd < 0) {
|
||||
if (cmd == M_NOTUNIQUE)
|
||||
pr("Command \"%s\" is ambiguous -- ", player->argp[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue