[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Fri Dec 21 22:43:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-12-22 04:42:27 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/patch.h src/mod/ctcp.mod/ctcp.c

Log message:

added my nopass.diff

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.267 eggdrop1.6/doc/UPDATES1.6:1.268
--- eggdrop1.6/doc/UPDATES1.6:1.267	Fri Dec 21 12:51:11 2001
+++ eggdrop1.6/doc/UPDATES1.6	Fri Dec 21 22:42:16 2001
@@ -1,10 +1,12 @@
-$Id: UPDATES1.6,v 1.267 2001/12/21 18:51:11 guppy Exp $
+$Id: UPDATES1.6,v 1.268 2001/12/22 04:42:16 guppy Exp $
 
 Changes in eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.8
 Found by  Fixed by  What...
+VYOinlove guppy     don't try to open a dcc chat when people do /ctcp <bot> chat without a
+                    a password set, instead send an error message
           quest/    fixed a problem on osx with files being shown as bytecount/-1
           stdarg
           BarkerJr  log the remote .who command
Index: eggdrop1.6/src/mod/ctcp.mod/ctcp.c
diff -u eggdrop1.6/src/mod/ctcp.mod/ctcp.c:1.15 eggdrop1.6/src/mod/ctcp.mod/ctcp.c:1.16
--- eggdrop1.6/src/mod/ctcp.mod/ctcp.c:1.15	Tue Jul 17 14:53:41 2001
+++ eggdrop1.6/src/mod/ctcp.mod/ctcp.c	Fri Dec 21 22:42:17 2001
@@ -2,7 +2,7 @@
  * ctcp.c -- part of ctcp.mod
  *   all the ctcp handling (except DCC, it's special ;)
  *
- * $Id: ctcp.c,v 1.15 2001/07/17 19:53:41 guppy Exp $
+ * $Id: ctcp.c,v 1.16 2001/12/22 04:42:17 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -148,6 +148,11 @@
   if ((atr & (USER_PARTY | USER_XFER)) ||
       ((atr & USER_OP) && !require_p)) {
 
+    if (u_pass_match(u, "-")) {
+      simple_sprintf(ctcp_reply, "%s\001ERROR no password set\001", ctcp_reply);
+      return 1;
+    }
+
     for (i = 0; i < dcc_total; i++) {
       if ((dcc[i].type->flags & DCT_LISTEN) &&
 	  (!strcmp(dcc[i].nick, "(telnet)") ||
@@ -162,8 +167,7 @@
         return 1;
       }
     }
-    simple_sprintf(ctcp_reply, "%s\001ERROR no telnet port\001",
-                   ctcp_reply);
+    simple_sprintf(ctcp_reply, "%s\001ERROR no telnet port\001", ctcp_reply);
   }
   return 1;
 }
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.644 eggdrop1.6/src/patch.h:1.645
--- eggdrop1.6/src/patch.h:1.644	Fri Dec 21 12:51:11 2001
+++ eggdrop1.6/src/patch.h	Fri Dec 21 22:42:16 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.644 2001/12/21 18:51:11 guppy Exp $
+ * $Id: patch.h,v 1.645 2001/12/22 04:42:16 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1008960534");		/* current unixtime */
+patch("1008996001");		/* current unixtime */
 /*
  *
  *
  */
-patch("filesizefix");
+patch("nopass");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list