[cvslog] (2002-10-08 04:25:47 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Mon Oct 7 23:26:01 CST 2002


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2002-10-08 04:25:47 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     eggdrop.conf doc/UPDATES1.6 doc/html/mod-irc.html
     doc/settings/mod.irc src/chan.h src/patch.h src/mod/irc.mod/irc.c

Log message:

Made the modes-per-line limit definable in src/chan.h. Patch by Eule.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.419 eggdrop1.6/doc/UPDATES1.6:1.420
--- eggdrop1.6/doc/UPDATES1.6:1.419	Mon Oct  7 21:04:02 2002
+++ eggdrop1.6/doc/UPDATES1.6	Mon Oct  7 23:25:37 2002
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.419 2002/10/08 02:04:02 wcc Exp $
+$Id: UPDATES1.6,v 1.420 2002/10/08 04:25:37 wcc Exp $
 
 Changes in Eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.13
 Found by  Fixed by  What...
+          Eule      made the modes-per-line limit definable in src/chan.h
           BarkerJr  [ban/exempt/invite]-time were not being saved to the channel file
 Eule      Wcc       halfops were not honored in flush_modes()
           NeoN      fixed cosmetic problems with logging in some irc module commands
Index: eggdrop1.6/doc/html/mod-irc.html
diff -u eggdrop1.6/doc/html/mod-irc.html:1.14 eggdrop1.6/doc/html/mod-irc.html:1.15
--- eggdrop1.6/doc/html/mod-irc.html:1.14	Sat Mar  9 15:14:15 2002
+++ eggdrop1.6/doc/html/mod-irc.html	Mon Oct  7 23:25:37 2002
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<!-- $Id: mod-irc.html,v 1.14 2002/03/09 21:14:15 wcc Exp $ -->
+<!-- $Id: mod-irc.html,v 1.15 2002/10/08 04:25:37 wcc Exp $ -->
 
 <html>
   <head>
@@ -235,7 +235,10 @@
           <p>Some networks allow you to stack lots of channel modes into
           one line. They&#39;re all guaranteed to support at least 3, so
           that&#39;s the default. If you know your network supports more,
-          you may  want to adjust this.</p>
+          you may  want to adjust this. This setting is limited to 6,
+          although if you want to use a higher value, you can modify this
+          by changing the value of MODES_PER_LINE_MAX in src/chan.h and
+          recompiling the bot.</p>
         </dd>
 
         <dt><strong>set include-lk 1</strong></dt>
Index: eggdrop1.6/doc/settings/mod.irc
diff -u eggdrop1.6/doc/settings/mod.irc:1.11 eggdrop1.6/doc/settings/mod.irc:1.12
--- eggdrop1.6/doc/settings/mod.irc:1.11	Thu Feb 28 23:59:41 2002
+++ eggdrop1.6/doc/settings/mod.irc	Mon Oct  7 23:25:37 2002
@@ -154,6 +154,9 @@
     Some networks allow you to stack lots of channel modes into one line.
     They're all guaranteed to support at least 3, so that's the default.
     If you know your network supports more, you may want to adjust this.
+    This setting is limited to 6, although if you want to use a higher
+    value, you can modify this by changing the value of MODES_PER_LINE_MAX
+    in src/chan.h and recompiling the bot.
 
   set include-lk 1
     Some networks don't include the +l limit and +k or -k key modes
Index: eggdrop1.6/eggdrop.conf
diff -u eggdrop1.6/eggdrop.conf:1.1 eggdrop1.6/eggdrop.conf:1.2
--- eggdrop1.6/eggdrop.conf:1.1	Fri Sep 27 17:16:24 2002
+++ eggdrop1.6/eggdrop.conf	Mon Oct  7 23:25:36 2002
@@ -1,7 +1,7 @@
 #! /path/to/executable/eggdrop
 # ^- This should contain a fully qualified path to your Eggdrop executable.
 #
-# $Id: eggdrop.conf,v 1.1 2002/09/27 22:16:24 wcc Exp $
+# $Id: eggdrop.conf,v 1.2 2002/10/08 04:25:36 wcc Exp $
 #
 # This is a sample Eggdrop configuration file which includes all possible
 # settings that can be used to configure your bot.
@@ -1047,6 +1047,9 @@
 # Some networks allow you to stack lots of channel modes into one line.
 # They're all guaranteed to support at least 3, so that's the default.
 # If you know your network supports more, you may want to adjust this.
+# This setting is limited to 6, although if you want to use a higher value,
+# you can modify this by changing the value of MODES_PER_LINE_MAX in
+# src/chan.h and recompiling the bot.
 #set modes-per-line 3
 
 # Some networks don't include the +l limit and +k or -k key modes
Index: eggdrop1.6/src/chan.h
diff -u eggdrop1.6/src/chan.h:1.31 eggdrop1.6/src/chan.h:1.32
--- eggdrop1.6/src/chan.h:1.31	Fri Sep 27 14:30:02 2002
+++ eggdrop1.6/src/chan.h	Mon Oct  7 23:25:37 2002
@@ -3,7 +3,7 @@
  *   stuff common to chan.c and mode.c
  *   users.h needs to be loaded too
  *
- * $Id: chan.h,v 1.31 2002/09/27 19:30:02 stdarg Exp $
+ * $Id: chan.h,v 1.32 2002/10/08 04:25:37 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -133,6 +133,8 @@
 #define CHANNOCTCP 0x2000      /* +C -- QuakeNet's ircu 2.10           */
 #define CHANLONLY  0x4000      /* +r -- ircu 2.10.11                   */
 
+#define MODES_PER_LINE_MAX 6
+
 /* For every channel i'm supposed to be active on */
 struct chanset_t {
   struct chanset_t *next;
@@ -187,7 +189,7 @@
   struct {
     char *op;
     int type;
-  } cmode[6];			/* parameter-type mode changes -	*/
+  } cmode[MODES_PER_LINE_MAX];			/* parameter-type mode changes -	*/
   /* detect floods */
   char floodwho[FLOOD_CHAN_MAX][81];
   time_t floodtime[FLOOD_CHAN_MAX];
Index: eggdrop1.6/src/mod/irc.mod/irc.c
diff -u eggdrop1.6/src/mod/irc.mod/irc.c:1.78 eggdrop1.6/src/mod/irc.mod/irc.c:1.79
--- eggdrop1.6/src/mod/irc.mod/irc.c:1.78	Mon Oct  7 20:21:30 2002
+++ eggdrop1.6/src/mod/irc.mod/irc.c	Mon Oct  7 23:25:37 2002
@@ -2,7 +2,7 @@
  * irc.c -- part of irc.mod
  *   support for channels within the bot
  *
- * $Id: irc.c,v 1.78 2002/10/08 01:21:30 wcc Exp $
+ * $Id: irc.c,v 1.79 2002/10/08 04:25:37 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -919,8 +919,8 @@
   struct chanset_t *chan;
   memberlist *m;
 
-  if (modesperline > 6)
-    modesperline = 6; 
+  if (modesperline > MODES_PER_LINE_MAX)
+    modesperline = MODES_PER_LINE_MAX; 
   for (chan = chanset; chan; chan = chan->next) {
     for (m = chan->channel.member; m && m->nick[0]; m = m->next) {
       if (m->delay && m->delay <= now) {
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.836 eggdrop1.6/src/patch.h:1.837
--- eggdrop1.6/src/patch.h:1.836	Mon Oct  7 21:04:02 2002
+++ eggdrop1.6/src/patch.h	Mon Oct  7 23:25:37 2002
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.836 2002/10/08 02:04:02 wcc Exp $
+ * $Id: patch.h,v 1.837 2002/10/08 04:25:37 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1034042374");		/* current unixtime */
+patch("1034048227");		/* current unixtime */
 /*
  *
  *
  */
-patch("save-ban-time");
+patch("modes_per_line_max");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list