[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sat Dec 29 15:09:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-29 21:08:58 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

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

Log message:

added my nopass patch from 1.6

---------------------- diff included ----------------------
Index: eggdrop1.7/doc/UPDATES1.6
diff -u eggdrop1.7/doc/UPDATES1.6:1.183 eggdrop1.7/doc/UPDATES1.6:1.184
--- eggdrop1.7/doc/UPDATES1.6:1.183	Sat Dec 29 15:04:21 2001
+++ eggdrop1.7/doc/UPDATES1.6	Sat Dec 29 15:08:47 2001
@@ -1,10 +1,12 @@
-$Id: UPDATES1.6,v 1.183 2001/12/29 21:04:21 guppy Exp $
+$Id: UPDATES1.6,v 1.184 2001/12/29 21:08:47 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.7/modules/ctcp/ctcp.c
diff -u eggdrop1.7/modules/ctcp/ctcp.c:1.2 eggdrop1.7/modules/ctcp/ctcp.c:1.3
--- eggdrop1.7/modules/ctcp/ctcp.c:1.2	Sun Dec  9 21:22:28 2001
+++ eggdrop1.7/modules/ctcp/ctcp.c	Sat Dec 29 15:08:47 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.2 2001/12/10 03:22:28 guppy Exp $
+ * $Id: ctcp.c,v 1.3 2001/12/29 21:08:47 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -149,6 +149,12 @@
   int atr = u ? u->flags : 0, i;
 
   if ((atr & (USER_PARTY | USER_XFER))) {
+
+    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)") ||
@@ -161,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.7/src/patch.h
diff -u eggdrop1.7/src/patch.h:1.568 eggdrop1.7/src/patch.h:1.569
--- eggdrop1.7/src/patch.h:1.568	Sat Dec 29 15:04:22 2001
+++ eggdrop1.7/src/patch.h	Sat Dec 29 15:08:48 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.568 2001/12/29 21:04:22 guppy Exp $
+ * $Id: patch.h,v 1.569 2001/12/29 21:08:48 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,17 +41,17 @@
  *
  *
  */
-patch("1009659623");		/* current unixtime */
+patch("1009659887");		/* current unixtime */
 /*
  *
  *
  */
-patch("filesizefix");
+patch("nopass");
 /*
  *
  *
  */
-patch("filesizefix");
+patch("nopass");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list