aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-09-01 14:38:41 +0200
committerGravatar attilamolnar2013-09-11 12:10:07 +0200
commit16398df07d4ce1f1d4a2e43d97bc39043f8d44b5 (patch)
treef12524963e8bf6a3b9c8014c5770f930229e802f /src/helperfuncs.cpp
parentCreate a base class for prefix modes (diff)
downloadinspircd++-16398df07d4ce1f1d4a2e43d97bc39043f8d44b5.tar.gz
inspircd++-16398df07d4ce1f1d4a2e43d97bc39043f8d44b5.tar.bz2
inspircd++-16398df07d4ce1f1d4a2e43d97bc39043f8d44b5.zip
Move prefix mode specific fields and getters into PrefixMode
Add ModeHandler::IsPrefixMode()
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 cfbd53c98..1cadc49eb 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -514,7 +514,7 @@ ModResult OnCheckExemptionHandler::Call(User* user, Channel* chan, const std::st
minmode = current[pos+1];
}
- ModeHandler* mh = ServerInstance->Modes->FindMode(minmode, MODETYPE_CHANNEL);
+ PrefixMode* mh = ServerInstance->Modes->FindPrefixMode(minmode);
if (mh && mypfx >= mh->GetPrefixRank())
return MOD_RES_ALLOW;
if (mh || minmode == '*')