From f6ace5e8084e2ab23f6797ab9d77a41466ea4a78 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 4 Feb 2015 18:53:28 +0100 Subject: m_spanningtree Fix TreeRoot UserCount being possibly wrong if loaded after startup --- src/modules/m_spanningtree/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 5f06cad58..967b577b1 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -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) -- cgit v1.2.3