From 7c340cba11b16d3c4a95c274c22f1617ac4711f2 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:45:49 +0000 Subject: Remove useless vector copy git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11608 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') 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 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 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: /* -- cgit v1.2.3