[cvslog] (2005-05-30 22:43:32 UTC) Module eggdrop1.6: Change committed!

cvslog cvs at tsss.org
Mon May 30 16:43:36 CST 2005


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2005-05-30 22:43:32 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/mod/share.mod/share.c

Log message:

- Fixed a situation where noshare could be set to 1 and never
  restored.
* Fixed by: lordares

Someone please test this or at least look over it more carefully. We 
don't want another "AHH ALL MY USERS LOST THEIR GLOBAL FLAGS" sharing 
bug.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.609 eggdrop1.6/doc/UPDATES1.6:1.610
--- eggdrop1.6/doc/UPDATES1.6:1.609	Mon May 30 17:09:33 2005
+++ eggdrop1.6/doc/UPDATES1.6	Mon May 30 17:43:10 2005
@@ -1,4 +1,4 @@
-$Id: UPDATES1.6,v 1.609 2005/05/30 22:09:33 wcc Exp $
+$Id: UPDATES1.6,v 1.610 2005/05/30 22:43:10 wcc Exp $
 
 Eggdrop Changes (since v1.6.0)
     _____________________________________________________________________
@@ -12,6 +12,10 @@
 
 
   1.6.18:
+    - Fixed a situation where noshare could be set to 1 and never
+      restored.
+    * Fixed by: lordares
+
     - Fixed a socklist leak in net.c.
     * Fixed by: lordares
 
Index: eggdrop1.6/src/mod/share.mod/share.c
diff -u eggdrop1.6/src/mod/share.mod/share.c:1.85 eggdrop1.6/src/mod/share.mod/share.c:1.86
--- eggdrop1.6/src/mod/share.mod/share.c:1.85	Mon Jan  3 14:01:46 2005
+++ eggdrop1.6/src/mod/share.mod/share.c	Mon May 30 17:43:15 2005
@@ -1,7 +1,7 @@
 /*
  * share.c -- part of share.mod
  *
- * $Id: share.c,v 1.85 2005/01/03 20:01:46 paladin Exp $
+ * $Id: share.c,v 1.86 2005/05/30 22:43:15 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -615,8 +615,10 @@
           makepass(pass);
           userlist = adduser(userlist, hand, "none", pass, USER_BOT);
           u = get_user_by_handle(userlist, hand);
-        } else if (!u)
+        } else if (!u) {
+          noshare = 0;
           return;
+        }
         if (uet->got_share) {
           if (!(e = find_user_entry(uet, u))) {
             e = user_malloc(sizeof(struct user_entry));
----------------------- End of diff -----------------------



More information about the Changes mailing list