summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index bc9388c94..79ab791d3 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -354,8 +354,7 @@ bool TreeSocket::ProcessLine(std::string &line)
User* user = ServerInstance->FindNick(prefix);
if (user)
{
- std::vector<std::string> p(params.begin(), params.end());
- return Utils->Creator->HandleMap(p, user);
+ return Utils->Creator->HandleMap(params, user);
}
}
else if (command == "SERVER")
@@ -563,10 +562,7 @@ bool TreeSocket::ProcessLine(std::string &line)
}
}
- // it's a user
- std::vector<std::string> strparams(params.begin(), params.end());
-
- switch (this->ServerInstance->CallCommandHandler(command.c_str(), strparams, who))
+ switch (this->ServerInstance->CallCommandHandler(command.c_str(), params, who))
{
case CMD_INVALID:
/*