[eggheads-patches] cmd_boot patch

PPSlim ppslim at ppslim.ukshells.co.uk
Wed Aug 22 19:14:00 CST 2001


cmd_boot has a problem that prevents users with full length handles being
booted.

Found by: bleah
Fix: PPSlim
patch: cmb_boot.patch

-------------- next part --------------
Index: cmds.c
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.6/src/cmds.c,v
retrieving revision 1.61
diff -u -r1.61 cmds.c
--- cmds.c	2001/07/29 06:08:04	1.61
+++ cmds.c	2001/08/23 00:10:08
@@ -588,7 +588,7 @@
   if (strchr(who, '@') != NULL) {
     char whonick[HANDLEN + 1];
 
-    splitcn(whonick, who, '@', HANDLEN);
+    splitcn(whonick, who, '@', HANDLEN + 1);
     if (!egg_strcasecmp(who, botnetnick)) {
       cmd_boot(u, idx, whonick);
       return;


More information about the Patches mailing list