From df37ab42f454e3a96d59a2a86eb76bcb4af0818a Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 15 Nov 2009 18:26:25 +0000 Subject: Hide channel mode structures git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12132 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_t.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/modes') 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; - } -} - -- cgit v1.2.3