summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index d0b114816..92428fd32 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -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)
{