summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-05 14:06:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-05 14:06:10 +0000
commit506137fa75ec09716a44ecf5fdc2fedeeddc0997 (patch)
tree409742d2e87f31780670025fb6dc777a21c3ea4f /src/command_parse.cpp
parentc6a230040ac37c80c009aae6735696ac91a1db8f (diff)
Whoops, make targets case insensitive when cutting down a comma seperated list
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5656 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index dcdff1b43..b67b269d2 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -214,7 +214,7 @@ int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** p
* By using std::map (thanks for the idea w00t) we can cut this down a ton.
* ...VOOODOOOO!
*/
- std::map<std::string, bool> dupes;
+ std::map<irc::string, bool> dupes;
/* Create two lists, one for channel names, one for keys
*/
@@ -229,7 +229,7 @@ int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** p
*/
while (((item = items1.GetToken()) != "") && (max++ < ServerInstance->Config->MaxTargets))
{
- if (dupes.find(item) == dupes.end())
+ if (dupes.find(item.c_str()) == dupes.end())
{
const char* new_parameters[127];
@@ -243,7 +243,7 @@ int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** p
CommandObj->Handle(new_parameters,pcnt,user);
- dupes[item] = true;
+ dupes[item.c_str()] = true;
}
}
return 1;
@@ -257,7 +257,7 @@ int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** p
if (!strchr(parameters[splithere],','))
return 0;
- std::map<std::string, bool> dupes;
+ std::map<irc::string, bool> dupes;
/* Only one commasepstream here */
ServerInstance->Log(DEBUG,"Splitting '%s'",parameters[splithere]);
@@ -271,7 +271,7 @@ int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** p
*/
while (((item = items1.GetToken()) != "") && (max++ < ServerInstance->Config->MaxTargets))
{
- if (dupes.find(item) == dupes.end())
+ if (dupes.find(item.c_str()) == dupes.end())
{
const char* new_parameters[127];
@@ -283,7 +283,7 @@ int CommandParser::LoopCall(userrec* user, command_t* CommandObj, const char** p
parameters[splithere] = item.c_str();
CommandObj->Handle(new_parameters,pcnt,user);
- dupes[item] = true;
+ dupes[item.c_str()] = true;
}
}
/* By returning 1 we tell our caller that nothing is to be done,