#include "inspircd.h"
#include "modules/exemption.h"
-class NoNicks : public SimpleChannelModeHandler
-{
- public:
- NoNicks(Module* Creator) : SimpleChannelModeHandler(Creator, "nonick", 'N') { }
-};
-
class ModuleNoNickChange : public Module
{
CheckExemption::EventProvider exemptionprov;
- NoNicks nn;
+ SimpleChannelModeHandler nn;
bool override;
public:
ModuleNoNickChange()
: exemptionprov(this)
- , nn(this)
+ , nn(this, "nonick", 'N')
{
}
{
Channel* curr = (*i)->chan;
- ModResult res;
- FIRST_MOD_RESULT_CUSTOM(exemptionprov, CheckExemption::EventListener, OnCheckExemption, res, (user, curr, "nonick"));
+ ModResult res = CheckExemption::Call(exemptionprov, user, curr, "nonick");
if (res == MOD_RES_ALLOW)
continue;