+ Channel *channel = *i;
+ ModResult res;
+
+ nickfloodsettings *f = nf.ext.get(channel);
+ if (f)
+ {
+ FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (user,channel,"nickflood"));
+ if (res == MOD_RES_ALLOW)
+ return;
+
+ /* moved this here to avoid incrementing the counter for nick
+ * changes that are denied for some other reason (bans, +N, etc.)
+ * per bug #874.
+ */
+ f->addnick();
+ }