diff options
-rw-r--r-- | src/command_parse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index ddbcc0a8d..a606e572c 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -742,7 +742,7 @@ void CommandParser::ProcessBuffer(const char* cmdbuf,userrec *user) bool CommandParser::CreateCommand(command_t *f) { /* create the command and push it onto the table */ - if (cmdlist.find(f->command) != cmdlist.end()) + if (cmdlist.find(f->command) == cmdlist.end()) { cmdlist[f->command] = f; log(DEBUG,"Added command %s (%lu parameters)",f->command.c_str(),(unsigned long)f->min_params); |