summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 84cc52df5..ff6d6035a 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -310,7 +310,7 @@ int InspIRCd::RegisteredUserCount()
int InspIRCd::ModeCount(const char mode)
{
- ModeHandler* mh = this->Modes->GetHandler(mode, MODETYPE_USER);
+ ModeHandler* mh = this->Modes->FindMode(mode, MODETYPE_USER);
if (mh)
return mh->GetCount();