[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Fri Dec 21 12:52:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-12-21 18:51:21 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

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

Log message:

added this patch from 1.6.7

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.266 eggdrop1.6/doc/UPDATES1.6:1.267
--- eggdrop1.6/doc/UPDATES1.6:1.266	Thu Dec 20 23:57:28 2001
+++ eggdrop1.6/doc/UPDATES1.6	Fri Dec 21 12:51:11 2001
@@ -1,10 +1,12 @@
-$Id: UPDATES1.6,v 1.266 2001/12/21 05:57:28 guppy Exp $
+$Id: UPDATES1.6,v 1.267 2001/12/21 18:51:11 guppy Exp $
 
 Changes in eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.8
 Found by  Fixed by  What...
+          quest/    fixed a problem on osx with files being shown as bytecount/-1
+          stdarg
           BarkerJr  log the remote .who command
           BarkerJr  fixed a small bug in guppy's last patch
 various   guppy     tcl_botisvoice, tcl_botisop, tcl_botonchan, tcl_onchansplit, tcl_isop,
Index: eggdrop1.6/src/mod/transfer.mod/transfer.c
diff -u eggdrop1.6/src/mod/transfer.mod/transfer.c:1.44 eggdrop1.6/src/mod/transfer.mod/transfer.c:1.45
--- eggdrop1.6/src/mod/transfer.mod/transfer.c:1.44	Tue Dec  4 22:12:07 2001
+++ eggdrop1.6/src/mod/transfer.mod/transfer.c	Fri Dec 21 12:51:11 2001
@@ -1,7 +1,7 @@
 /*
  * transfer.c -- part of transfer.mod
  *
- * $Id: transfer.c,v 1.44 2001/12/05 04:12:07 guppy Exp $
+ * $Id: transfer.c,v 1.45 2001/12/21 18:51:11 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1430,18 +1430,21 @@
  *
  * Use raw_dcc_resend() and raw_dcc_send() instead of this function.
  */
+
 static int raw_dcc_resend_send(char *filename, char *nick, char *from,
 			       char *dir, int resend)
 {
   int zz, port, i;
   char *nfn, *buf = NULL;
-  struct stat ss;
-  FILE *f;
-
+  long dccfilesize;
+  FILE *f, *dccfile;
   zz = (-1);
-  stat(filename, &ss);
+  dccfile = fopen(filename,"r");
+  fseek(dccfile, 0, SEEK_END);
+  dccfilesize = ftell(dccfile);
+  fclose(dccfile);
   /* File empty?! */
-  if (ss.st_size == 0)
+  if (dccfilesize == 0)
     return DCCSEND_FEMPTY;
   if (reserved_port_min > 0 && reserved_port_min < reserved_port_max) {
     for (port = reserved_port_min; port <= reserved_port_max; port++) {
@@ -1478,7 +1481,7 @@
   strcpy(dcc[i].u.xfer->origname, nfn);
   strcpy(dcc[i].u.xfer->from, from);
   strcpy(dcc[i].u.xfer->dir, dir);
-  dcc[i].u.xfer->length = ss.st_size;
+  dcc[i].u.xfer->length = dccfilesize;
   dcc[i].timeval = now;
   dcc[i].u.xfer->f = f;
   dcc[i].u.xfer->type = resend ? XFER_RESEND_PEND : XFER_SEND;
@@ -1486,8 +1489,8 @@
     dprintf(DP_HELP, "PRIVMSG %s :\001DCC %sSEND %s %lu %d %lu\001\n", nick,
 	    resend ? "RE" :  "", nfn,
 	    iptolong(natip[0] ? (IP) inet_addr(natip) : getmyip()), port,
-	    ss.st_size);
-    putlog(LOG_FILES, "*",TRANSFER_BEGIN_DCC, resend ? TRANSFER_RE :  "",
+	    dccfilesize);
+    putlog(LOG_FILES, "*", "Begin DCC %ssend %s to %s", resend ? "re" : "",
 	   nfn, nick);
   }
   if (buf)
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.643 eggdrop1.6/src/patch.h:1.644
--- eggdrop1.6/src/patch.h:1.643	Thu Dec 20 23:12:37 2001
+++ eggdrop1.6/src/patch.h	Fri Dec 21 12:51:11 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.643 2001/12/21 05:12:37 guppy Exp $
+ * $Id: patch.h,v 1.644 2001/12/21 18:51:11 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1008911432");		/* current unixtime */
+patch("1008960534");		/* current unixtime */
 /*
  *
  *
  */
-patch("whomsg");
+patch("filesizefix");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list