summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-19 20:38:50 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-19 20:38:50 +0000
commit54a0ed6f79b962bc2bd6e0020fc129aab05917d9 (patch)
treee5b61a0698fd1740d482e3ec52ca18e448fcfd8f
parent1a44c42dabc98ca70baaf4dabd3c4556d9a48fe7 (diff)
LUSERS oper count was broken and reporting the oper count to always be equal to the number of users (whoops)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3738 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index c910e0f2b..f26490689 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -1495,7 +1495,7 @@ int usercount_opers(void)
for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
{
- if (i->second->oper)
+ if (*(i->second->oper))
c++;
}
return c;