[eggheads-patches] PATCH:set_chanlist-fix.patch

Axel Franke eule at berlin.snafu.de
Fri Oct 6 18:53:00 CST 2000


Hi,

This patch fixed set_chanlist (was broken if use set strict-host 0).

Greeting Eule

-------------- next part --------------
diff -ur eggdrop1.5/src/userrec.c eggneu/src/userrec.c
--- eggdrop1.5/src/userrec.c	Sat Oct  7 02:06:18 2000
+++ eggneu/src/userrec.c	Sat Oct  7 02:07:54 2000
@@ -336,6 +336,7 @@
   struct userrec *u = userlist, *ret;
   struct list_type *q;
   int cnt, i;
+  char host2[UHOSTLEN];
 
   if (host == NULL)
     return NULL;
@@ -349,6 +350,7 @@
     return ret;
   }
   cache_miss++;
+  strcpy(host2, host);
   host = fixfrom(host);
   while (u != NULL) {
     q = get_user(&USERENTRY_HOSTS, u);
@@ -364,7 +366,7 @@
   }
   if (ret != NULL) {
     lastuser = ret;
-    set_chanlist(host, ret);
+    set_chanlist(host2, ret);
   }
   return ret;
 }


More information about the Patches mailing list