summaryrefslogtreecommitdiff
path: root/src/modes/cmode_t.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes/cmode_t.cpp')
-rw-r--r--src/modes/cmode_t.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/modes/cmode_t.cpp b/src/modes/cmode_t.cpp
index b85922b06..b9b108f5f 100644
--- a/src/modes/cmode_t.cpp
+++ b/src/modes/cmode_t.cpp
@@ -17,20 +17,6 @@
#include "users.h"
#include "modes/cmode_t.h"
-ModeChannelTopicOps::ModeChannelTopicOps() : ModeHandler(NULL, "topic", 't', PARAM_NONE, MODETYPE_CHANNEL)
+ModeChannelTopicOps::ModeChannelTopicOps() : SimpleChannelModeHandler(NULL, "topic", 't')
{
}
-
-ModeAction ModeChannelTopicOps::OnModeChange(User*, User*, Channel* channel, std::string&, bool adding)
-{
- if (channel->modes[CM_TOPICLOCK] != adding)
- {
- channel->modes[CM_TOPICLOCK] = adding;
- return MODEACTION_ALLOW;
- }
- else
- {
- return MODEACTION_DENY;
- }
-}
-