send_reply(sptr, ERR_CANNOTSENDTOCHAN, chptr->chname);
return;
}
+
+ if(!IsXtraOp(sptr) && ext_noflood_block(sptr, chptr)) {
+ send_reply(sptr, ERR_CANNOTSENDTOCHAN, chptr->chname);
+ return;
+ }
/*
* This first: Almost never a server/service
*/
if(!IsXtraOp(sptr) && !HasPriv(sptr, PRIV_NOAMSG_OVERRIDE) && ext_amsg_block(sptr, chptr, text))
return;
-
+
+ if(!IsXtraOp(sptr) && ext_noflood_block(sptr, chptr)) {
+ send_reply(sptr, ERR_CANNOTSENDTOCHAN, chptr->chname);
+ return;
+ }
+
/* Now we check if the channel has the NONOTICE mode
* If NONOTICE is set only XtraOPS or ColorOverride users can send notices!
*/