X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommand_parse.cpp;h=9ea7b020229569b13fd46358effdefbac880ebf1;hb=c4d7f00f7497e107f00d9dcf1dea49ddba14297e;hp=36b3d712cfbcacd14cd09e2efa311cebff9251f5;hpb=c6a3d4bafc70dc9bd99b9da37c4b12a5324d4e0f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 36b3d712c..9ea7b0202 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * InspIRCd: (C) 2002-2009 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -69,10 +69,10 @@ int CommandParser::LoopCall(User* user, Command* CommandObj, const std::vector dupes; + std::set dupes; /* Create two lists, one for channel names, one for keys */ @@ -103,7 +103,7 @@ int CommandParser::LoopCall(User* user, Command* CommandObj, const std::vectorHandle(new_parameters, user); - dupes[item.c_str()] = true; + dupes.insert(item.c_str()); } } return 1; @@ -120,7 +120,7 @@ int CommandParser::LoopCall(User* user, Command* CommandObj, const std::vector dupes; + std::set dupes; /* Only one commasepstream here */ irc::commasepstream items1(parameters[splithere]); @@ -145,7 +145,7 @@ int CommandParser::LoopCall(User* user, Command* CommandObj, const std::vectorHandle(new_parameters, user); - dupes[item.c_str()] = true; + dupes.insert(item.c_str()); } } /* By returning 1 we tell our caller that nothing is to be done, @@ -525,7 +525,7 @@ bool CommandParser::ReloadCommand(std::string cmd, User* user) return false; } -CmdResult cmd_reload::Handle(const std::vector& parameters, User *user) +CmdResult CommandReload::Handle(const std::vector& parameters, User *user) { if (parameters.size() < 1) return CMD_FAILURE; @@ -606,7 +606,7 @@ void CommandParser::SetupCommandTable() } if (cmdlist.find("RELOAD") == cmdlist.end()) - this->CreateCommand(new cmd_reload(ServerInstance)); + this->CreateCommand(new CommandReload(ServerInstance)); } int CommandParser::TranslateUIDs(TranslateType to, const std::string &source, std::string &dest)