virtual Version GetVersion()
{
- return Version("Provides support for channel mode +N & extban +b N: which prevents nick changes on channel", VF_COMMON | VF_VENDOR, API_VERSION);
+ return Version("Provides support for channel mode +N & extban +b N: which prevents nick changes on channel", VF_COMMON | VF_VENDOR);
}
{
Channel* curr = *i;
- if (CHANOPS_EXEMPT('N') && curr->GetPrefixValue(user) == OP_VALUE)
+ ModResult res;
+ FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (user,curr,"nonick"));
+
+ if (res == MOD_RES_ALLOW)
continue;
if (!curr->GetExtBanStatus(user, 'N').check(!curr->IsModeSet('N')))