From 014f4a259ed667ea5dad8eddcda96adc97f66e27 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 19 Feb 2006 15:59:57 +0000 Subject: 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 --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3