]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/server.cpp
Optimize some behaviour in the core (#1476).
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / server.cpp
index 3000dd39185e33d63876657c490f5302bfea190e..ecdad87f81797babf9e59337412a86786d97c71c 100644 (file)
@@ -86,7 +86,7 @@ void CommandServer::HandleExtra(TreeServer* newserver, const std::vector<std::st
                }
 
                if (key == "burst")
-                       newserver->BeginBurst(ConvToUInt64(val));
+                       newserver->BeginBurst(ConvToNum<uint64_t>(val));
        }
 }
 
@@ -98,7 +98,6 @@ Link* TreeSocket::AuthRemote(const parameterlist& params)
                return NULL;
        }
 
-       irc::string servername = params[0].c_str();
        const std::string& sname = params[0];
        const std::string& password = params[1];
        const std::string& sid = params[3];
@@ -115,7 +114,7 @@ Link* TreeSocket::AuthRemote(const parameterlist& params)
        for (std::vector<reference<Link> >::iterator i = Utils->LinkBlocks.begin(); i < Utils->LinkBlocks.end(); i++)
        {
                Link* x = *i;
-               if (x->Name != servername && x->Name != "*") // open link allowance
+               if ((!stdalgo::string::equalsci(x->Name, sname)) && (x->Name != "*")) // open link allowance
                        continue;
 
                if (!ComparePass(*x, password))