class BlockCaps : public ModeHandler
{
+ public:
BlockCaps() : ModeHandler('P', 0, 0, false, MODETYPE_CHANNEL, false) { }
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding)
{
if (!channel->IsModeSet('P'))
{
- channel->SetCustomMode('P',true);
+ channel->SetMode('P',true);
return MODEACTION_ALLOW;
}
}
{
if (channel->IsModeSet('P'))
{
- channel->SetCustomMode('P',false);
+ channel->SetMode('P',false);
return MODEACTION_ALLOW;
}
}
virtual ~ModuleBlockCAPS()
{
+ DELETE(bc);
}
virtual Version GetVersion()