[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Mon Oct 15 04:55:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-10-15 09:54:11 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     src/main.c src/script.c src/mod/tclscript.mod/tclscript.c

Log message:

script.c: Forgot to push the script event on the event stack.
main.c: timer_destroy_all() was being called in the wrong place.
tclscript.c: Documentation error in a comment.

---------------------- diff included ----------------------
Index: eggdrop1.7/src/main.c
diff -u eggdrop1.7/src/main.c:1.86 eggdrop1.7/src/main.c:1.87
--- eggdrop1.7/src/main.c:1.86	Mon Oct 15 04:27:08 2001
+++ eggdrop1.7/src/main.c	Mon Oct 15 04:54:01 2001
@@ -5,7 +5,7 @@
  *   command line arguments
  *   context and assert debugging
  *
- * $Id: main.c,v 1.86 2001/10/15 09:27:08 stdarg Exp $
+ * $Id: main.c,v 1.87 2001/10/15 09:54:01 stdarg Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1035,6 +1035,7 @@
 	  putlog(LOG_MISC, "*", _("Stagnant module; there WILL be memory leaks!"));
 	flushlogs();
 	kill_tcl();
+	timer_destroy_all(); /* Destroy all timers. */
 	init_tcl(argc, argv);
 	/* We expect the encryption module as the current module pointed
 	 * to by `module_list'.
@@ -1049,7 +1050,6 @@
 	call_hook(HOOK_LOADED);
       }
       do_restart = 0;
-      timer_destroy_all(); /* Destroy all timers. */
     }
   }
 }
Index: eggdrop1.7/src/mod/tclscript.mod/tclscript.c
diff -u eggdrop1.7/src/mod/tclscript.mod/tclscript.c:1.4 eggdrop1.7/src/mod/tclscript.mod/tclscript.c:1.5
--- eggdrop1.7/src/mod/tclscript.mod/tclscript.c:1.4	Mon Oct 15 04:27:08 2001
+++ eggdrop1.7/src/mod/tclscript.mod/tclscript.c	Mon Oct 15 04:54:01 2001
@@ -194,7 +194,7 @@
 		}
 	}
 	else if (v->type & SCRIPT_POINTER) {
-		/* A pointer variable (will be represented as a hex string). */
+		/* A pointer variable (will be represented as a decimal string). */
 		char str[32];
 
 		sprintf(str, "#%u", v->value);
Index: eggdrop1.7/src/script.c
diff -u eggdrop1.7/src/script.c:1.3 eggdrop1.7/src/script.c:1.4
--- eggdrop1.7/src/script.c:1.3	Mon Oct 15 04:27:08 2001
+++ eggdrop1.7/src/script.c	Mon Oct 15 04:54:01 2001
@@ -21,6 +21,7 @@
 	event->arg1 = arg1;
 	event->arg2 = arg2;
 	event->arg3 = arg3;
+	mstack_push(script_events, event);
 }
 
 static int my_create_cmd(void *ignore, script_command_t *info)
----------------------- End of diff -----------------------



More information about the Changes mailing list