]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modes/cmode_s.cpp
6a27dddfd08ae72c7544af893ebcdd7d80099b59
[user/henk/code/inspircd.git] / src / modes / cmode_s.cpp
1 #include "inspircd.h"
2 #include "mode.h"
3 #include "channels.h"
4 #include "users.h"
5 #include "modes/cmode_s.h"
6
7 ModeChannelSecret::ModeChannelSecret() : ModeHandler('s', 0, 0, 0, MODETYPE_CHANNEL, false)
8 {
9 }
10
11 ModeAction ModeChannelSecret::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
12 {
13         channel->modes[CM_SECRET] = adding;
14         return MODEACTION_ALLOW;
15 }