[cvslog] (2003-01-29 07:24:42 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Wed Jan 29 01:25:00 CST 2003


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2003-01-29 07:24:42 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     src/patch.h src/userrec.c src/mod/share.mod/share.c

Log message:

* Fixed a check variable from being reset to 1 incorrectly when writing
  userfiles.

---------------------- diff included ----------------------
Index: eggdrop1.6/src/mod/share.mod/share.c
diff -u eggdrop1.6/src/mod/share.mod/share.c:1.70 eggdrop1.6/src/mod/share.mod/share.c:1.71
--- eggdrop1.6/src/mod/share.mod/share.c:1.70	Tue Jan 28 23:48:42 2003
+++ eggdrop1.6/src/mod/share.mod/share.c	Wed Jan 29 01:24:32 2003
@@ -1,7 +1,7 @@
 /*
  * share.c -- part of share.mod
  *
- * $Id: share.c,v 1.70 2003/01/29 05:48:42 wcc Exp $
+ * $Id: share.c,v 1.71 2003/01/29 07:24:32 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1606,7 +1606,8 @@
     fprintf(f, "#4v: %s -- %s -- transmit\n", ver, botnetnick);
     ok = 1;
     for (u = bu; u && ok; u = u->next)
-      ok = write_user(u, f, idx);
+      if (!write_user(u, f, idx))
+        ok = 0;
     if (!write_ignores(f, idx))
       ok = 0;
     if (!write_bans(f, idx))
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.886 eggdrop1.6/src/patch.h:1.887
--- eggdrop1.6/src/patch.h:1.886	Wed Jan 29 00:13:49 2003
+++ eggdrop1.6/src/patch.h	Wed Jan 29 01:24:32 2003
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.886 2003/01/29 06:13:49 wcc Exp $
+ * $Id: patch.h,v 1.887 2003/01/29 07:24:32 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1043820829");            /* current unixtime */
+patch("1043825057");            /* current unixtime */
 /*
  *
  *
  */
-patch("indent4");
+patch("save_ignores2");
 /*
  *
  *
Index: eggdrop1.6/src/userrec.c
diff -u eggdrop1.6/src/userrec.c:1.43 eggdrop1.6/src/userrec.c:1.44
--- eggdrop1.6/src/userrec.c:1.43	Tue Jan 28 00:37:24 2003
+++ eggdrop1.6/src/userrec.c	Wed Jan 29 01:24:32 2003
@@ -4,7 +4,7 @@
  *   a bunch of functions to find and change user records
  *   change and check user (and channel-specific) flags
  *
- * $Id: userrec.c,v 1.43 2003/01/28 06:37:24 wcc Exp $
+ * $Id: userrec.c,v 1.44 2003/01/29 07:24:32 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -569,7 +569,8 @@
   fprintf(f, "#4v: %s -- %s -- written %s", ver, botnetnick, s1);
   ok = 1;
   for (u = userlist; u && ok; u = u->next)
-    ok = write_user(u, f, idx);
+    if (!write_user(u, f, idx))
+      ok = 0;
   if (!ok || !write_ignores(f, -1) || fflush(f)) {
     putlog(LOG_MISC, "*", "%s (%s)", USERF_ERRWRITE, strerror(ferror(f)));
     fclose(f);
----------------------- End of diff -----------------------



More information about the Changes mailing list