diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c index 818698fb2..c118be227 100644 --- a/src/command.c +++ b/src/command.c @@ -883,7 +883,7 @@ int handleCommands(FILE * fp, unsigned int * permission, int argArrayLength, while(node != NULL) { cmd = (CommandEntry *) node->data; - if(*permission & cmd->reqPermission) { + if(*permission || *permission & cmd->reqPermission) { myfprintf(fp, "command: %s\n", cmd->cmd); } @@ -902,7 +902,7 @@ int handleNotcommands(FILE * fp, unsigned int * permission, int argArrayLength, while(node != NULL) { cmd = (CommandEntry *) node->data; - if(!(*permission & cmd->reqPermission)) { + if(!(*permission || *permission & cmd->reqPermission)) { myfprintf(fp, "command: %s\n", cmd->cmd); } |