[eggheads-patches] PATCH: conchfix.patch

Peter 'Rattacresh' Backes rtc at rhrk.uni-kl.de
Tue Oct 5 15:06:57 CST 1999


.console shouldn't allow channels starting with '*'.


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

-------------- next part --------------
diff -urN eggdrop1.3.29/doc/UPDATES1.3 eggdrop1.3.29+conchfix/doc/UPDATES1.3
--- eggdrop1.3.29/doc/UPDATES1.3	Tue Oct  5 14:19:47 1999
+++ eggdrop1.3.29+conchfix/doc/UPDATES1.3	Tue Oct  5 14:19:08 1999
@@ -4,6 +4,7 @@
 
 1.3.29
 Foundby   Fixedby   What....
+          rtc       fixed .console to not allow channels starting with '*'.
 Beige	  Fabian    killsock() could accidently free unused socket entries
           Tothwolf/ fixed way we get version number for Tcl_PkgProvide()
           ^PRS4^
diff -urN eggdrop1.3.29/src/cmds.c eggdrop1.3.29+conchfix/src/cmds.c
--- eggdrop1.3.29/src/cmds.c	Tue Oct  5 14:19:48 1999
+++ eggdrop1.3.29+conchfix/src/cmds.c	Tue Oct  5 14:08:54 1999
@@ -645,7 +645,7 @@
   if (!nick[0])
     nick = newsplit(&par);
   if (strchr("#&*", nick[0])) {
-    if ((nick[0] != '*') && !findchan(nick)) {
+    if (strcmp(nick, "*") && !findchan(nick)) {
       dprintf(idx, "Invalid console channel: %s\n", nick);
       return;
     }


More information about the Patches mailing list