[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.iavalley.cc.ia.us
Sat May 19 17:20:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-05-19 22:19:12 UTC
Commited by: guppy

Modified files:
     doc/UPDATES1.6 doc/tcl-commands.doc src/main.c src/patch.h
     src/tclmisc.c

Log message:

here we go ... 1.6.5 any time soon because of that dns.mod problem....

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.101 eggdrop1.6/doc/UPDATES1.6:1.102
--- eggdrop1.6/doc/UPDATES1.6:1.101	Fri May 18 17:46:37 2001
+++ eggdrop1.6/doc/UPDATES1.6	Sat May 19 17:19:02 2001
@@ -4,6 +4,7 @@
 
 1.6.5
 Found by  Fixed by  What...
+Abraham   guppy     new evnt: prerestart (restart is tricky)
 various   drummer/  we now detect __res_init for glibc2.2
           guppy
           guppy     removed legacy /trace support for keep-nick
Index: eggdrop1.6/doc/tcl-commands.doc
diff -u eggdrop1.6/doc/tcl-commands.doc:1.43 eggdrop1.6/doc/tcl-commands.doc:1.44
--- eggdrop1.6/doc/tcl-commands.doc:1.43	Wed Feb 14 22:33:17 2001
+++ eggdrop1.6/doc/tcl-commands.doc	Sat May 19 17:19:02 2001
@@ -941,6 +941,9 @@
   md5 <string>
     returns: the 128 bits MD5 "message-digest" of the specified string.
 
+| callevent <event>
+|   Triggers the evnt bind manually for a certain event. For example:
+|     callevent "rehash"
 
 GLOBAL VARIABLES:
   (All config-file variables are global, too.  But these variables
@@ -1396,6 +1399,7 @@
          save              (called when the userfile is saved)
          rehash            (called just after a rehash)
          prerehash         (called just before a rehash)
+|        prerestart        (called just before a restart)
          logfile           (called when the logs are switched daily)
 |
 |        connect-server    (called just before we connect to an irc server)
Index: eggdrop1.6/src/main.c
diff -u eggdrop1.6/src/main.c:1.58 eggdrop1.6/src/main.c:1.59
--- eggdrop1.6/src/main.c:1.58	Fri Apr 13 17:27:14 2001
+++ eggdrop1.6/src/main.c	Sat May 19 17:19:02 2001
@@ -5,7 +5,7 @@
  *   command line arguments
  *   context and assert debugging
  *
- * $Id: main.c,v 1.58 2001/04/13 22:27:14 guppy Exp $
+ * $Id: main.c,v 1.59 2001/05/19 22:19:02 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1004,6 +1004,9 @@
 	module_entry *p;
 	Function x;
 	char xx[256];
+
+ 	/* oops, I guess we should call this event before tcl is restarted */
+   	check_tcl_event("prerestart");
 
 	while (f) {
 	  f = 0;
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.470 eggdrop1.6/src/patch.h:1.471
--- eggdrop1.6/src/patch.h:1.470	Fri May 18 17:46:37 2001
+++ eggdrop1.6/src/patch.h	Sat May 19 17:19:02 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.470 2001/05/18 22:46:37 guppy Exp $
+ * $Id: patch.h,v 1.471 2001/05/19 22:19:02 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("990225549");		/* current unixtime */
+patch("990310549");		/* current unixtime */
 /*
  *
  *
  */
-patch("res_init");
+patch("prestart_event");
 /*
  *
  *
Index: eggdrop1.6/src/tclmisc.c
diff -u eggdrop1.6/src/tclmisc.c:1.19 eggdrop1.6/src/tclmisc.c:1.20
--- eggdrop1.6/src/tclmisc.c:1.19	Mon May 14 11:17:00 2001
+++ eggdrop1.6/src/tclmisc.c	Sat May 19 17:19:02 2001
@@ -3,7 +3,7 @@
  *   Tcl stubs for file system commands
  *   Tcl stubs for everything else
  *
- * $Id: tclmisc.c,v 1.19 2001/05/14 16:17:00 guppy Exp $
+ * $Id: tclmisc.c,v 1.20 2001/05/19 22:19:02 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -487,6 +487,13 @@
   return TCL_OK;
 }
 
+static int tcl_callevent STDVAR
+{
+  BADARGS(2, 2, " event");
+  check_tcl_event(argv[1]);
+  return TCL_OK;
+}
+
 static int tcl_md5 STDVAR
 {
   MD5_CTX       md5context;
@@ -538,5 +545,6 @@
   {"duration",		tcl_duration},
   {"md5",		tcl_md5},
   {"binds",		tcl_binds},
+  {"callevent",		tcl_callevent},
   {NULL,		NULL}
 };
----------------------- End of diff -----------------------



More information about the Changes mailing list