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_n.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_n.cpp')
-rw-r--r-- | src/modes/cmode_n.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/modes/cmode_n.cpp b/src/modes/cmode_n.cpp index 0f3607566..e8ede5976 100644 --- a/src/modes/cmode_n.cpp +++ b/src/modes/cmode_n.cpp @@ -17,20 +17,7 @@ #include "users.h" #include "modes/cmode_n.h" -ModeChannelNoExternal::ModeChannelNoExternal(InspIRCd* Instance) : ModeHandler(Instance, 'n', 0, 0, false, MODETYPE_CHANNEL, false) +ModeChannelNoExternal::ModeChannelNoExternal(InspIRCd* Instance) : SimpleChannelModeHandler(Instance, 'n') { } -ModeAction ModeChannelNoExternal::OnModeChange(User*, User*, Channel* channel, std::string&, bool adding, bool servermode) -{ - if (channel->modes[CM_NOEXTERNAL] != adding) - { - channel->modes[CM_NOEXTERNAL] = adding; - return MODEACTION_ALLOW; - } - else - { - return MODEACTION_DENY; - } -} - |