summaryrefslogtreecommitdiff
path: root/src/modules/m_operprefix.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-06-06 03:10:10 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-06 03:10:10 +0200
commitb57c0342cab22f9872dabaa8eff76ce5c8b9a890 (patch)
tree18a6a13ffd7c212877217268f0b594aa91a676cb /src/modules/m_operprefix.cpp
parent86c454a676eed57486fc555c3a9df57cd12b4dd6 (diff)
Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank() to be non-virtual
Diffstat (limited to 'src/modules/m_operprefix.cpp')
-rw-r--r--src/modules/m_operprefix.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index d061a5eab..9c15cf5b2 100644
--- a/src/modules/m_operprefix.cpp
+++ b/src/modules/m_operprefix.cpp
@@ -38,11 +38,7 @@ class OperPrefixMode : public ModeHandler
prefix = pfx.empty() ? '!' : pfx[0];
levelrequired = OPERPREFIX_VALUE;
m_paramtype = TR_NICK;
- }
-
- unsigned int GetPrefixRank()
- {
- return OPERPREFIX_VALUE;
+ prefixrank = OPERPREFIX_VALUE;
}
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)