summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:45:49 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:45:49 +0000
commit7c340cba11b16d3c4a95c274c22f1617ac4711f2 (patch)
tree98909c7b6e68fc29a041a7a5397e1d04f8e9c550
parentf25c4b7a2263f5f3ce9bb41ba56b43c0d3a6d124 (diff)
Remove useless vector copy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11608 e03df62e-2008-0410-955e-edbf42e46eb7
-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:
/*