diff options
Diffstat (limited to 'src/modes')
-rw-r--r-- | src/modes/cmode_s.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/modes/cmode_s.cpp b/src/modes/cmode_s.cpp index 16c446eec..6a27dddfd 100644 --- a/src/modes/cmode_s.cpp +++ b/src/modes/cmode_s.cpp @@ -2,18 +2,14 @@ #include "mode.h" #include "channels.h" #include "users.h" +#include "modes/cmode_s.h" -class ModeChannelSecret : public ModeHandler +ModeChannelSecret::ModeChannelSecret() : ModeHandler('s', 0, 0, 0, MODETYPE_CHANNEL, false) { - public: - ModeChannelSecret() : ModeHandler('s', 0, 0, 0, MODETYPE_CHANNEL, false) - { - } - - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) - { - channel->modes[CM_SECRET] = adding; - return MODEACTION_ALLOW; - } -}; +} +ModeAction ModeChannelSecret::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) +{ + channel->modes[CM_SECRET] = adding; + return MODEACTION_ALLOW; +} |