diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-22 17:02:34 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-22 17:02:34 +0200 |
commit | fea425704f1ab72dc7dbadb556958e71144c3765 (patch) | |
tree | 32a67275d089691727d1f9823475ec40788003c6 /src/modules/m_spanningtree/server.cpp | |
parent | 4e0b32e67e27235162f41b362ac62b86c9e0af18 (diff) |
m_spanningtree Change type of Link::Name to std::string
Switch to stdalgo::string::equalsci()
Diffstat (limited to 'src/modules/m_spanningtree/server.cpp')
-rw-r--r-- | src/modules/m_spanningtree/server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/server.cpp b/src/modules/m_spanningtree/server.cpp index 3000dd391..50f63e117 100644 --- a/src/modules/m_spanningtree/server.cpp +++ b/src/modules/m_spanningtree/server.cpp @@ -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)) |