[eggheads-patches] PATCH: cleanup.patch

Peter 'Rattacresh' Backes rtc at rhrk.uni-kl.de
Thu Oct 21 14:28:27 CST 1999


The person who applied botrecall.patch didn't resolve a reject 
correctly, causing parts of cmall.patch to be reversed. (the swapped 
rfc_casecmp/strncasecmp and tcl_chnick to origbotnick).


-- Peter 'Rattacresh' Backes, rtc at rhrk.uni-kl.de

-------------- next part --------------
diff -urN eggdrop1.3.29/src/tcluser.c eggdrop1.3.29+cleanup/src/tcluser.c
--- eggdrop1.3.29/src/tcluser.c	Thu Oct 21 16:50:56 1999
+++ eggdrop1.3.29+cleanup/src/tcluser.c	Thu Oct 21 16:53:18 1999
@@ -381,8 +381,9 @@
       x = 0;
     else if (get_user_by_handle(userlist, newhand))
       x = 0;
-    else if ((!strcasecmp(origbotname, newhand) || !rfc_casecmp(botnetnick, newhand)) &&
-             (!(u->flags & USER_BOT) || nextbot (argv [1]) != -1))      x = 0;
+    else if (!strcasecmp(botnetnick, newhand) &&
+             (!(u->flags & USER_BOT) || nextbot (argv [1]) != -1))
+      x = 0;
     else if (newhand[0] == '*')
       x = 0;
   }


More information about the Patches mailing list