]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/svsnick.cpp
m_spanningtree Call the OnServerLink hook from TreeServer constructor
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / svsnick.cpp
index bb21fc54d374cf40a38c28a87e11485a3bce8a20..84cf8558cef2a3ef31fb51239106cec3515f0633 100644 (file)
@@ -62,7 +62,7 @@ CmdResult CommandSVSNick::Handle(User* user, std::vector<std::string>& parameter
 
                if (!u->ChangeNick(nick, NickTS))
                {
-                       /* buh. UID them */
+                       // Changing to 'nick' failed (it may already be in use), change to the uuid
                        u->ChangeNick(u->uuid);
                }
        }
@@ -72,8 +72,5 @@ CmdResult CommandSVSNick::Handle(User* user, std::vector<std::string>& parameter
 
 RouteDescriptor CommandSVSNick::GetRouting(User* user, const std::vector<std::string>& parameters)
 {
-       User* u = ServerInstance->FindNick(parameters[0]);
-       if (u)
-               return ROUTE_OPT_UCAST(u->server);
-       return ROUTE_LOCALONLY;
+       return ROUTE_OPT_UCAST(parameters[0]);
 }