diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-19 15:59:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-19 15:59:57 +0000 |
commit | 014f4a259ed667ea5dad8eddcda96adc97f66e27 (patch) | |
tree | 70bb0d479475b612d1aee6477251a9b46c4c4109 | |
parent | a394fd9c5336e0d653312a8879cd38264880f761 (diff) |
This was back to front and threw an exception when the command DIDNT exist (whoooops!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3251 e03df62e-2008-0410-955e-edbf42e46eb7
-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); |