]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/override_map.cpp
Fix m_chanlog crashing.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / override_map.cpp
index d50215b76c1480e4fe77f0d2877a9a5561f302ab..9b117272a3bcd292a6e93be86246c96d08467779 100644 (file)
@@ -66,14 +66,14 @@ void ModuleSpanningTree::ShowMap(TreeServer* Current, User* user, int depth, cha
                /* Neat and tidy default values, as we're dealing with a matrix not a simple string */
                memset(text, 0, 128);
 
-               if (ServerInstance->clientlist->size() == 0)
+               if (ServerInstance->Users->clientlist->size() == 0)
                {
                        // If there are no users, WHO THE HELL DID THE /MAP?!?!?!
                        percent = 0;
                }
                else
                {
-                       percent = ((float)Current->GetUserCount() / (float)ServerInstance->clientlist->size()) * 100;
+                       percent = ((float)Current->GetUserCount() / (float)ServerInstance->Users->clientlist->size()) * 100;
                }
 
                const std::string operdata = IS_OPER(user) ? MapOperInfo(Current) : "";