]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/command_parse.cpp
Decide that it wasn't quite appropriate :(
[user/henk/code/inspircd.git] / src / command_parse.cpp
index ddbcc0a8d982e313f887a4148429fd6666db6375..a606e572ce48370e5abd7b204bf7a165e4514e42 100644 (file)
@@ -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);