diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:45:49 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:45:49 +0000 |
commit | 7c340cba11b16d3c4a95c274c22f1617ac4711f2 (patch) | |
tree | 98909c7b6e68fc29a041a7a5397e1d04f8e9c550 /src/modules/m_spanningtree | |
parent | f25c4b7a2263f5f3ce9bb41ba56b43c0d3a6d124 (diff) |
Remove useless vector copy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11608 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 8 |
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: /* |