diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-26 23:23:47 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-05-27 01:07:30 +0200 |
commit | 3406c7234ac15b6a2fc52afa770fb851da25c215 (patch) | |
tree | a772480ea9d1d01f038ea4f7704630831ca35541 /include/builtinmodes.h | |
parent | 9bb24d3f458274b7485554bc95f1274900a69ec2 (diff) |
Simplify user mode removal via ModeHandler::RemoveMode()
The function does not need to be virtual because the core can remove any user mode using the default logic
The optional modestack parameter was always NULL, so remove it
Diffstat (limited to 'include/builtinmodes.h')
-rw-r--r-- | include/builtinmodes.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/builtinmodes.h b/include/builtinmodes.h index 46bfe282b..ba34a3da9 100644 --- a/include/builtinmodes.h +++ b/include/builtinmodes.h @@ -52,7 +52,6 @@ class ModeChannelKey : public ModeHandler public: ModeChannelKey(); ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); - void RemoveMode(User* user, irc::modestacker* stack = NULL); }; /** Channel mode +l @@ -94,7 +93,6 @@ class ModeChannelOp : public ModeHandler ModeChannelOp(); ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); unsigned int GetPrefixRank(); - void RemoveMode(User* user, irc::modestacker* stack = NULL); }; /** Channel mode +p @@ -136,7 +134,6 @@ class ModeChannelVoice : public ModeHandler ModeChannelVoice(); ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); unsigned int GetPrefixRank(); - void RemoveMode(User* user, irc::modestacker* stack = NULL); }; /** User mode +i |