summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index e80a65c59..57772a37a 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -174,7 +174,7 @@ class TreeServer
{
server_hash::iterator iter;
iter = serverlist.find(this->ServerName);
- if (iter == clientlist.end())
+ if (iter == serverlist.end())
serverlist[this->ServerName] = this;
}
@@ -182,7 +182,7 @@ class TreeServer
{
server_hash::iterator iter;
iter = serverlist.find(this->ServerName);
- if (iter != clientlist.end())
+ if (iter != serverlist.end())
serverlist.erase(iter);
}
@@ -336,7 +336,7 @@ TreeServer* FindServer(std::string ServerName)
{
server_hash::iterator iter;
iter = serverlist.find(ServerName);
- if (iter != clientlist.end())
+ if (iter != serverlist.end())
{
return iter->second;
}