summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mode.h9
-rw-r--r--src/mode.cpp3
2 files changed, 1 insertions, 11 deletions
diff --git a/include/mode.h b/include/mode.h
index 589ff9141..3877e0d3b 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -111,11 +111,6 @@ class CoreExport ModeHandler : public ServiceProvider
Id modeid;
protected:
- /**
- * The mode parameter translation type
- */
- TranslateType m_paramtype;
-
/** What kind of parameters does the mode take?
*/
ParamSpec parameters_taken;
@@ -201,10 +196,6 @@ class CoreExport ModeHandler : public ServiceProvider
*/
inline ModeType GetModeType() const { return m_type; }
/**
- * Returns the mode's parameter translation type
- */
- inline TranslateType GetTranslateType() const { return m_paramtype; }
- /**
* Returns true if the mode can only be set/unset by an oper
*/
inline bool NeedsOper() const { return oper; }
diff --git a/src/mode.cpp b/src/mode.cpp
index ef62c9446..ec0cb6985 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -27,7 +27,7 @@
#include "builtinmodes.h"
ModeHandler::ModeHandler(Module* Creator, const std::string& Name, char modeletter, ParamSpec Params, ModeType type, Class mclass)
- : ServiceProvider(Creator, Name, SERVICE_MODE), modeid(ModeParser::MODEID_MAX), m_paramtype(TR_TEXT),
+ : ServiceProvider(Creator, Name, SERVICE_MODE), modeid(ModeParser::MODEID_MAX),
parameters_taken(Params), mode(modeletter), oper(false),
list(false), m_type(type), type_id(mclass), levelrequired(HALFOP_VALUE)
{
@@ -187,7 +187,6 @@ PrefixMode::PrefixMode(Module* Creator, const std::string& Name, char ModeLetter
, prefix(PrefixChar), prefixrank(Rank)
{
list = true;
- m_paramtype = TR_NICK;
}
ModeAction PrefixMode::OnModeChange(User* source, User*, Channel* chan, std::string& parameter, bool adding)