[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Tue Dec 18 22:59:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-12-19 04:58:05 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/patch.h src/mod/irc.mod/chan.c
     src/mod/irc.mod/mode.c

Log message:

added Eule's small-fixes patch

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.254 eggdrop1.6/doc/UPDATES1.6:1.255
--- eggdrop1.6/doc/UPDATES1.6:1.254	Tue Dec 18 20:59:08 2001
+++ eggdrop1.6/doc/UPDATES1.6	Tue Dec 18 22:57:54 2001
@@ -1,10 +1,12 @@
-$Id: UPDATES1.6,v 1.254 2001/12/19 02:59:08 guppy Exp $
+$Id: UPDATES1.6,v 1.255 2001/12/19 04:57:54 guppy Exp $
 
 Changes in eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.8
 Found by  Fixed by  What...
+          Eule      a bunch of small fixes to gotjoin, gotkick, got367, a
+                    modes-per-line calcuation, and to include_lk
           Wcc       yet more documentation updates
 ziffie    BHAB      Documentation doesn't cover how to connect to servers with 
                     a password; documentation added to sample config files.
Index: eggdrop1.6/src/mod/irc.mod/chan.c
diff -u eggdrop1.6/src/mod/irc.mod/chan.c:1.74 eggdrop1.6/src/mod/irc.mod/chan.c:1.75
--- eggdrop1.6/src/mod/irc.mod/chan.c:1.74	Sun Dec 16 08:56:00 2001
+++ eggdrop1.6/src/mod/irc.mod/chan.c	Tue Dec 18 22:57:54 2001
@@ -6,7 +6,7 @@
  *   user kickban, kick, op, deop
  *   idle kicking
  *
- * $Id: chan.c,v 1.74 2001/12/16 14:56:00 guppy Exp $
+ * $Id: chan.c,v 1.75 2001/12/19 04:57:54 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -399,7 +399,7 @@
   m = ismember(chan, nick);
   if (!m)
     return;
-  /* Check channel bans in first cycle and global bans
+  /* Check global bans in first cycle and channel bans
      in second cycle. */
   for (cycle = 0; cycle < 2; cycle++) {
     for (b = cycle ? chan->bans : global_bans; b; b = b->next) {
@@ -436,7 +436,7 @@
   masklist	*b;
   int		 cycle;
 
-  /* Check channel exempts in first cycle and global exempts
+  /* Check global exempts in first cycle and channel exempts
      in second cycle. */
   for (cycle = 0; cycle < 2; cycle++) {
     for (e = cycle ? chan->exempts : global_exempts; e; e = e->next) {
@@ -459,7 +459,7 @@
   maskrec	*i;
   int		 cycle;
 
-  /* Check channel invites in first cycle and global invites
+  /* Check global invites in first cycle and channel invites
      in second cycle. */
   for (cycle = 0; cycle < 2; cycle++) {
     for (i = cycle ? chan->invites : global_invites; i; i = i->next) {
@@ -503,7 +503,7 @@
   maskrec	*u;
   int		 cycle;
 
-  /* Check channel bans in first cycle and global bans
+  /* Check global bans in first cycle and channel bans
      in second cycle. */
   for (cycle = 0; cycle < 2; cycle++) {
     for (u = cycle ? chan->bans : global_bans; u; u = u->next)
@@ -524,7 +524,7 @@
   masklist	*b;
   int		 cycle;
 
-  /* Check channel exempts in first cycle and global exempts
+  /* Check global exempts in first cycle and channel exempts
      in second cycle. */
   for (cycle = 0; cycle < 2; cycle++) {
     for (e = cycle ? chan->exempts : global_exempts; e; e = e->next) {
@@ -551,7 +551,7 @@
   maskrec	*ir;
   int		 cycle;
 
-  /* Check channel invites in first cycle and global invites
+  /* Check global invites in first cycle and channel invites
      in second cycle. */
   for (cycle = 0; cycle < 2; cycle++)  {
     for (ir = cycle ? chan->invites : global_invites; ir; ir = ir->next) {
@@ -730,7 +730,7 @@
       /* ^ will use the ban comment */
     }
     /* are they +k ? */
-    if (chan_kick(*fr) || glob_kick(*fr)) {
+    if (!chan_sentkick(m) && (chan_kick(*fr) || glob_kick(*fr))) {
       check_exemptlist(chan, s);
       quickban(chan, m->userhost);
       p = get_user(&USERENTRY_COMMENT, m->user);
@@ -1046,10 +1046,8 @@
  */
 static int got367(char *from, char *origmsg)
 {
-  char s[UHOSTLEN], *ban, *who, *chname, buf[511], *msg;
+  char *ban, *who, *chname, buf[511], *msg;
   struct chanset_t *chan;
-  struct userrec *u;
-  struct flag_record fr = {FR_GLOBAL | FR_CHAN, 0, 0, 0, 0, 0};
 
   strncpy(buf, origmsg, 510);
   buf[510] = 0;
@@ -1066,16 +1064,6 @@
     newban(chan, ban, who);
   else
     newban(chan, ban, "existent");
-  simple_sprintf(s, "%s!%s", botname, botuserhost);
-  if (wild_match(ban, s))
-    add_mode(chan, '-', 'b', ban);
-  u = get_user_by_host(ban);
-  if (u) {		/* Why bother check no-user :) - of if Im not an op */
-    get_user_flagrec(u, &fr, chan->dname);
-    if (chan_op(fr) || (glob_op(fr) && !chan_deop(fr)))
-      add_mode(chan, '-', 'b', ban);
-    /* These will be flushed by 368: end of ban info */
-  }
   return 0;
 }
 
@@ -1715,7 +1703,7 @@
 	      u_match_mask(chan->bans, from)) {
 	    refresh_ban_kick(chan, from, nick);
 	  /* Likewise for kick'ees */
-	  } else if (glob_kick(fr) || chan_kick(fr)) {
+	  } else if (!chan_sentkick(m) && (glob_kick(fr) || chan_kick(fr))) {
 	    check_exemptlist(chan, from);
 	    quickban(chan, from);
 	    p = get_user(&USERENTRY_COMMENT, m->user);
@@ -1901,11 +1889,12 @@
       sprintf(s1, "%s!%s", msg, uhost);
       strcpy(m->nick, msg);
       detect_chan_flood(msg, uhost, from, chan, FLOOD_NICK, NULL);
-      /* Any pending kick to the old nick is lost. Ernst 18/3/1998 */
-      if (chan_sentkick(m)) {
-	m->flags &= ~SENTKICK;
+      /* don't fill the serverqueue with modes or kicks in a nickflood */
+      if (chan_sentkick(m) || chan_sentdeop(m) || chan_sentop(m) ||
+	  chan_sentdevoice(m) || chan_sentvoice(m))
 	m->flags |= STOPCHECK;
-      }
+      /* Any pending kick or mode to the old nick is lost. */
+	m->flags &= ~(SENTKICK | SENTDEOP | SENTOP | SENTVOICE | SENTDEVOICE);
       /* nick-ban or nick is +k or something? */
       if (!chan_stopcheck(m)) {
 	get_user_flagrec(m->user ? m->user : get_user_by_host(s1), &fr, chan->dname);
Index: eggdrop1.6/src/mod/irc.mod/mode.c
diff -u eggdrop1.6/src/mod/irc.mod/mode.c:1.51 eggdrop1.6/src/mod/irc.mod/mode.c:1.52
--- eggdrop1.6/src/mod/irc.mod/mode.c:1.51	Wed Nov 28 17:26:05 2001
+++ eggdrop1.6/src/mod/irc.mod/mode.c	Tue Dec 18 22:57:54 2001
@@ -4,7 +4,7 @@
  *   channel mode changes and the bot's reaction to them
  *   setting and getting the current wanted channel modes
  *
- * $Id: mode.c,v 1.51 2001/11/28 23:26:05 guppy Exp $
+ * $Id: mode.c,v 1.52 2001/12/19 04:57:54 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -329,13 +329,13 @@
   for (i = 0; i < modesperline; i++)
     if (chan->cmode[i].type)
       modes--;
-  if (include_lk && chan->limit != -1)
+  if (include_lk && chan->limit)
     modes--;
   if (include_lk && chan->rmkey)
     modes--;
   if (include_lk && chan->key)
     modes--;
-  if (modes < 0)
+  if (modes < 1)
     flush_mode(chan, NORMAL);		/* Full buffer! Flush modes. */
 }
 
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.630 eggdrop1.6/src/patch.h:1.631
--- eggdrop1.6/src/patch.h:1.630	Tue Dec 18 11:21:35 2001
+++ eggdrop1.6/src/patch.h	Tue Dec 18 22:57:54 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.630 2001/12/18 17:21:35 guppy Exp $
+ * $Id: patch.h,v 1.631 2001/12/19 04:57:54 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1008696001");		/* current unixtime */
+patch("1008737245");		/* current unixtime */
 /*
  *
  *
  */
-patch("docupdates");
+patch("small-fixes");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list