- Channel* c = (Channel*)dest;
- if (!c->GetExtBanStatus(user, 'T').check(!c->IsModeSet('T')))
+ Channel* c = target.Get<Channel>();
+
+ ModResult res = CheckExemption::Call(exemptionprov, user, c, "nonotice");
+ if (res == MOD_RES_ALLOW)
+ return MOD_RES_PASSTHRU;
+
+ if (c->IsModeSet(nt))
+ {
+ user->WriteNumeric(Numerics::CannotSendTo(c, "notices", &nt));
+ return MOD_RES_DENY;
+ }
+
+ if (c->GetExtBanStatus(user, 'T') == MOD_RES_DENY)