Make OPMODE ignore ban count and length checks.
authorMichael Poole <mdpoole@troilus.org>
Sat, 2 Jan 2010 04:15:50 +0000 (04:15 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 2 Jan 2010 04:15:50 +0000 (04:15 +0000)
(Patch #2693309, inspired by Quakenet commit 228:4b3157d90fc6.)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1923 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/channel.c

index 91fab17519c16b6baf6c84992ec0c531e5735486..a521d68adf983d11c36af38d54378003fb5710ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-01  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/channel.c (mode_process_bans): Bypass total ban count and
+       length checks for OPMODEs.
+
 2010-01-01  Michael Poole <mdpoole@troilus.org>
 
        * ircd/ircd_features.c (feature_report): If sd->sd_funcdata is
index a7ae5128e5306dfab9ef84793db77c90e0a6ad62..aae13e6e595cfd37babb8773212a6bd0f544393c 100644 (file)
@@ -2919,6 +2919,7 @@ mode_process_bans(struct ParseState *state)
        len -= banlen;
       } else {
        if (state->flags & MODE_PARSE_SET && MyUser(state->sptr) &&
+            !(state->mbuf->mb_dest & MODEBUF_DEST_OPMODE) &&
            (len > (feature_int(FEAT_AVBANLEN) * feature_int(FEAT_MAXBANS)) ||
             count > feature_int(FEAT_MAXBANS))) {
          send_reply(state->sptr, ERR_BANLISTFULL, state->chptr->chname,