aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-01-06 15:24:50 +0000
committerGravatar brain2007-01-06 15:24:50 +0000
commitcd73452f53c331f42c97861546197285b7c3010e (patch)
treebd75c0cf897a492ccb0e874a945ae1afc98abde5 /src/helperfuncs.cpp
parentRepeat after me class, deleting values that arent newed isnt good for your he... (diff)
Fix oper count, we cant decrement ModeCount('o') from the userrec destructor as its already been removed earlier
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6228 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 5662c6914..fd69a9a49 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -325,7 +325,7 @@ int InspIRCd::InvisibleUserCount()
int InspIRCd::OperCount()
{
- return ModeCount('o');
+ return this->all_opers.count();
}
int InspIRCd::UnregisteredUserCount()