diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-14 15:03:48 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-14 15:03:48 +0200 |
commit | 978233e0074a3ff2ed7a33141ea3607314dbf81a (patch) | |
tree | 1d3b71b87da00a55424623cd80ce29f6afa34745 /src | |
parent | c35089b8cfd108ccfb85077f74236e704ba7cf55 (diff) |
m_spanningtree Initialize TreeServer::UserCount for TreeRoot in its constructor
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 3 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treeserver.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 2ab05e014..5f07cb065 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -93,9 +93,6 @@ void ModuleSpanningTree::init() loopCall = false; SplitInProgress = false; - - // update our local user count - Utils->TreeRoot->UserCount = ServerInstance->Users->local_users.size(); } void ModuleSpanningTree::ShowLinks(TreeServer* Current, User* user, int hops) diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp index 3d57b1314..a069de1d6 100644 --- a/src/modules/m_spanningtree/treeserver.cpp +++ b/src/modules/m_spanningtree/treeserver.cpp @@ -36,7 +36,8 @@ TreeServer::TreeServer() : Server(ServerInstance->Config->ServerName, ServerInstance->Config->ServerDesc) , Parent(NULL), Route(NULL) , VersionString(ServerInstance->GetVersionString()), Socket(NULL), sid(ServerInstance->Config->GetSID()), ServerUser(ServerInstance->FakeClient) - , age(ServerInstance->Time()), Warned(false), bursting(false), UserCount(0), OperCount(0), rtt(0), StartBurst(0), Hidden(false) + , age(ServerInstance->Time()), Warned(false), bursting(false), UserCount(ServerInstance->Users->local_users.size()) + , OperCount(0), rtt(0), StartBurst(0), Hidden(false) { AddHashEntry(); } |