[eggheads-patches] PATCH:gotnick.patch

Axel Franke eule at berlin.snafu.de
Fri Oct 6 15:34:00 CST 2000


Hi,

this patch removed in gotnick the call to clear_chanlist(); because
this is cpu-waste. If we set only this m->user to NULL, this would be
enough.

Greeting Eule

-------------- next part --------------
diff -ur eggdrop1.5/src/mod/irc.mod/chan.c eggneu/src/mod/irc.mod/chan.c
--- eggdrop1.5/src/mod/irc.mod/chan.c	Fri Oct  6 21:49:19 2000
+++ eggneu/src/mod/irc.mod/chan.c	Fri Oct  6 22:05:11 2000
@@ -1848,7 +1848,11 @@
     }
     chan = chan->next;
   }
-  clear_chanlist();		/* Cache is meaningless now. */
+  for (chan = chanset; chan; chan = chan->next) {
+    m = ismember(chan, msg);
+    if (m)
+      m->user = NULL;
+  }
   return 0;
 }
 


More information about the Patches mailing list