summaryrefslogtreecommitdiff
path: root/src/mode.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/mode.cpp
parent86c454a676eed57486fc555c3a9df57cd12b4dd6 (diff)
Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank() to be non-virtual
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index ac0b111b1..2f56c3327 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -29,7 +29,7 @@
ModeHandler::ModeHandler(Module* Creator, const std::string& Name, char modeletter, ParamSpec Params, ModeType type)
: ServiceProvider(Creator, Name, SERVICE_MODE), m_paramtype(TR_TEXT),
parameters_taken(Params), mode(modeletter), prefix(0), oper(false),
- list(false), m_type(type), levelrequired(HALFOP_VALUE)
+ list(false), m_type(type), levelrequired(HALFOP_VALUE), prefixrank(0)
{
}
@@ -44,11 +44,6 @@ ModeHandler::~ModeHandler()
{
}
-unsigned int ModeHandler::GetPrefixRank()
-{
- return 0;
-}
-
int ModeHandler::GetNumParams(bool adding)
{
switch (parameters_taken)