diff options
Diffstat (limited to 'src/modes/cmode_s.cpp')
-rw-r--r-- | src/modes/cmode_s.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/modes/cmode_s.cpp b/src/modes/cmode_s.cpp new file mode 100644 index 000000000..16c446eec --- /dev/null +++ b/src/modes/cmode_s.cpp @@ -0,0 +1,19 @@ +#include "inspircd.h" +#include "mode.h" +#include "channels.h" +#include "users.h" + +class ModeChannelSecret : public ModeHandler +{ + 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; + } +}; + |