[cvslog] (2004-09-02 20:57:50 UTC) Module eggdrop1.7: Change committed!

cvslog cvs at tsss.org
Thu Sep 2 14:57:50 CST 2004


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2004-09-02 20:57:50 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     src/logfile.c

Log message:

* Oops, the conditions were reversed in logfile_init(), causing a crash.

---------------------- diff included ----------------------
Index: eggdrop1.7/src/logfile.c
diff -u eggdrop1.7/src/logfile.c:1.3 eggdrop1.7/src/logfile.c:1.4
--- eggdrop1.7/src/logfile.c:1.3	Tue Aug 31 17:56:11 2004
+++ eggdrop1.7/src/logfile.c	Thu Sep  2 15:57:39 2004
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  *
- * $Id: logfile.c,v 1.3 2004/08/31 22:56:11 wcc Exp $
+ * $Id: logfile.c,v 1.4 2004/09/02 20:57:39 wcc Exp $
  */
 
 #include "main.h"
@@ -636,7 +636,9 @@
 
 void logfile_init(int dotcl)
 {
-  if (dotcl) {
+  if (dotcl)
+    add_tcl_commands(logfile_tcl);
+  else {
     static int last = 0;
 
     if (max_logs < 1)
@@ -655,7 +657,5 @@
       logs[last].repeats   = 0;
       logs[last].flags     = 0;
     }
-  } else {
-    add_tcl_commands(logfile_tcl);
   }
 }
----------------------- End of diff -----------------------



More information about the Changes mailing list