diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-06 10:22:23 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-06 10:22:23 +0000 |
commit | f9689fca158ea585bac34d18914f07cd9f53d3c9 (patch) | |
tree | e29a39e25be3e48bbc71a87fe4c8a5ffc3aa14a1 /src/modules/m_spanningtree.cpp | |
parent | 1941dc3386d5524e812cf7a208bd72051e4e510a (diff) |
Using the wrong iterator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2210 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 6 |
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; } |