diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-06 03:10:10 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-06 03:10:10 +0200 |
commit | b57c0342cab22f9872dabaa8eff76ce5c8b9a890 (patch) | |
tree | 18a6a13ffd7c212877217268f0b594aa91a676cb /src/modules/m_operprefix.cpp | |
parent | 86c454a676eed57486fc555c3a9df57cd12b4dd6 (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.cpp | 6 |
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 ¶meter, bool adding) |