]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/command_parse.cpp
Include explicit parameter list in ProtocolInterface::SendMode
[user/henk/code/inspircd.git] / src / command_parse.cpp
index d0b1148165815f494225d1dcff3986643876f7d6..92428fd32b5842f32a3abf48f40edbdc6480c86f 100644 (file)
@@ -609,19 +609,20 @@ void CommandParser::SetupCommandTable()
                this->CreateCommand(new CommandReload(ServerInstance));
 }
 
-int CommandParser::TranslateUIDs(const std::vector<TranslateType> to, const std::string &source, std::string &dest)
+int CommandParser::TranslateUIDs(const std::deque<TranslateType> to, const std::deque<std::string> &source, std::string &dest)
 {
-       irc::spacesepstream items(source);
-       std::vector<TranslateType>::const_iterator types = to.begin();
+       std::deque<std::string>::const_iterator items = source.begin();
+       std::deque<TranslateType>::const_iterator types = to.begin();
        User* user = NULL;
-       std::string item;
        int translations = 0;
        dest.clear();
 
-       while (items.GetToken(item))
+       while (items != source.end() && types != to.end())
        {
                TranslateType t = *types;
+               std::string item = *items;
                types++;
+               items++;
 
                switch (t)
                {