CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_11_03
Commit time: 2002-10-19 14:07:41 UTC

Modified files:
  Tag: u2_10_11_03
     ChangeLog ircd/channel.c

Log message:

Author: Kev <[EMAIL PROTECTED]>
Log message:

Correct an off-by-one error in mode_process_ban()--now you can set all
45 bans on a channel.  (Note that 45 bans is new in .03.)

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.125.2.3 ircu2.10/ChangeLog:1.290.2.125.2.4
--- ircu2.10/ChangeLog:1.290.2.125.2.3  Fri Oct 18 19:32:03 2002
+++ ircu2.10/ChangeLog  Sat Oct 19 07:07:30 2002
@@ -1,3 +1,9 @@
+2002-10-19  Kevin L Mitchell  <[EMAIL PROTECTED]>
+
+       * ircd/channel.c (mode_process_bans): correct an off-by-one error
+       that allowed only 29 (44) bans to be set instead of the full 30
+       (45)
+
 2002-10-19  Perry Lorier <[EMAIL PROTECTED]>
 
        * doc/example.conf: Changed defaults for host hiding and maxbans.
Index: ircu2.10/ircd/channel.c
diff -u ircu2.10/ircd/channel.c:1.73.2.10.4.1 ircu2.10/ircd/channel.c:1.73.2.10.4.2
--- ircu2.10/ircd/channel.c:1.73.2.10.4.1       Wed Oct 16 12:50:47 2002
+++ ircu2.10/ircd/channel.c     Sat Oct 19 07:07:31 2002
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: channel.c,v 1.73.2.10.4.1 2002/10/16 19:50:47 isomer Exp $
+ * $Id: channel.c,v 1.73.2.10.4.2 2002/10/19 14:07:31 klmitch Exp $
  */
 #include "config.h"
 
@@ -2240,7 +2240,7 @@
       } else {
        if (state->flags & MODE_PARSE_SET && MyUser(state->sptr) &&
            (len > (feature_int(FEAT_AVBANLEN) * feature_int(FEAT_MAXBANS)) ||
-            count >= feature_int(FEAT_MAXBANS))) {
+            count > feature_int(FEAT_MAXBANS))) {
          send_reply(state->sptr, ERR_BANLISTFULL, state->chptr->chname,
                     ban->value.ban.banstr);
          count--;
----------------------- End of diff -----------------------

Reply via email to