[eggheads-patches] PATCH:expired2.patch

Axel Franke eule at berlin.snafu.de
Tue Oct 24 01:34:00 CST 2000


As i the expired.patch a little more tested have, i found a more bug 
the my first patch not fixed: the servlimitcheck exists in the 
server.mod and in irc.c-check_expired_chanstuff as duplicate. This 
patch removed this from irc.c....

Greeting Eule

-------------- next part --------------
diff -ur eggdrop1.5/src/mod/irc.mod/irc.c eggneu/src/mod/irc.mod/irc.c
--- eggdrop1.5/src/mod/irc.mod/irc.c	Tue Oct 24 08:37:43 2000
+++ eggneu/src/mod/irc.mod/irc.c	Tue Oct 24 08:46:33 2000
@@ -583,8 +583,6 @@
   char s[UHOSTLEN];
   struct chanset_t *chan;
   struct flag_record fr = {FR_GLOBAL | FR_CHAN, 0, 0, 0, 0, 0};
-  static int count = 4;
-  int ok = 0;
 
   if (!server_online)
     return;
@@ -681,20 +679,11 @@
 	m = n;
       }
       check_lonely_channel(chan);
-      if (chan->channel.members == 1)
-	ok = 1;
     }
     else if (!channel_inactive(chan) && !channel_pending(chan))
       dprintf(DP_MODE, "JOIN %s %s\n",
               (chan->name[0]) ? chan->name : chan->dname,
               chan->channel.key[0] ? chan->channel.key : chan->key_prot);
-  }
-  if (min_servs && ok) {
-    count++;
-    if (count >= 5) {
-      dprintf(DP_SERVER, "LUSERS\n");
-      count = 0;
-    }
   }
 }
 


More information about the Patches mailing list