summaryrefslogtreecommitdiff
path: root/src/modes/cmode_n.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes/cmode_n.cpp')
-rw-r--r--src/modes/cmode_n.cpp15
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;
- }
-}
-