diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-01 19:56:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-01 19:56:16 +0000 |
commit | 0376f1d8be09a242befe207be4fa9e809d098557 (patch) | |
tree | fb4b48e61025a335d271efa39a622526f8517e50 /src/modes/cmode_s.cpp | |
parent | ef79134812eb0f3ef024fe57519dce05ec4fb401 (diff) |
Convert to SimpleUserModeHandler and SimpleChannelModeHandler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9599 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes/cmode_s.cpp')
-rw-r--r-- | src/modes/cmode_s.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/modes/cmode_s.cpp b/src/modes/cmode_s.cpp index ab1365536..92fa4ea94 100644 --- a/src/modes/cmode_s.cpp +++ b/src/modes/cmode_s.cpp @@ -17,19 +17,7 @@ #include "users.h" #include "modes/cmode_s.h" -ModeChannelSecret::ModeChannelSecret(InspIRCd* Instance) : ModeHandler(Instance, 's', 0, 0, false, MODETYPE_CHANNEL, false) +ModeChannelSecret::ModeChannelSecret(InspIRCd* Instance) : SimpleChannelModeHandler(Instance, 's') { } -ModeAction ModeChannelSecret::OnModeChange(User*, User*, Channel* channel, std::string&, bool adding, bool servermode) -{ - if (channel->modes[CM_SECRET] != adding) - { - channel->modes[CM_SECRET] = adding; - return MODEACTION_ALLOW; - } - else - { - return MODEACTION_DENY; - } -} |