5 #include "modes/cmode_i.h"
7 ModeChannelInviteOnly::ModeChannelInviteOnly(InspIRCd* Instance) : ModeHandler(Instance, 'i', 0, 0, false, MODETYPE_CHANNEL, false)
11 ModeAction ModeChannelInviteOnly::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding)
13 if (channel->modes[CM_INVITEONLY] != adding)
15 channel->modes[CM_INVITEONLY] = adding;
16 return MODEACTION_ALLOW;
20 return MODEACTION_DENY;