]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/treesocket2.cpp
Make VF_OPTCOMMON module mismatches a fatal link error by default
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / treesocket2.cpp
index bc9388c94956287c8a6f94e7716be03525d0bb6f..79ab791d356e86914131ad3c9767db1696c7bb9d 100644 (file)
@@ -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:
                                                /*