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