]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_spanningtree Fix TreeRoot UserCount being possibly wrong if loaded after startup
authorAttila Molnar <attilamolnar@hush.com>
Wed, 4 Feb 2015 17:53:28 +0000 (18:53 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 4 Feb 2015 17:53:28 +0000 (18:53 +0100)
src/modules/m_spanningtree/main.cpp

index 5f06cad586a4eee63e2e4061c4ee7c4cb9af047f..967b577b15d03f466df3f3df81f7d29857d8f7ae 100644 (file)
@@ -88,7 +88,7 @@ void ModuleSpanningTree::init()
        loopCall = false;
 
        // update our local user count
-       Utils->TreeRoot->SetUserCount(ServerInstance->Users->local_users.size());
+       Utils->TreeRoot->SetUserCount(ServerInstance->Users->LocalUserCount());
 }
 
 void ModuleSpanningTree::ShowLinks(TreeServer* Current, User* user, int hops)