]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/command_parse.cpp
cmd_kill: log all kills from or to remote users
[user/henk/code/inspircd.git] / src / command_parse.cpp
index 7e0c1c76dbf3ebad702a9ec1bdb1e2bcf29fdb5b..f3511b05b0c7c36aa4c0f41ffea961e7056b54a2 100644 (file)
@@ -60,7 +60,7 @@ bool CommandParser::LoopCall(User* user, Command* handler, const std::vector<std
         *
         * Only check for duplicates if there is one list (allow them in JOIN).
         */
-       insp::flat_set<irc::string> dupes;
+       insp::flat_set<std::string, irc::insensitive_swo> dupes;
        bool check_dupes = (extra < 0);
 
        /* Create two sepstreams, if we have only one list, then initialize the second sepstream with
@@ -80,7 +80,7 @@ bool CommandParser::LoopCall(User* user, Command* handler, const std::vector<std
         */
        while (items1.GetToken(item) && (!usemax || max++ < ServerInstance->Config->MaxTargets))
        {
-               if ((!check_dupes) || (dupes.insert(item.c_str()).second))
+               if ((!check_dupes) || (dupes.insert(item).second))
                {
                        std::vector<std::string> new_parameters(parameters);
                        new_parameters[splithere] = item;