[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Fri Dec 28 12:32:00 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-28 18:31:49 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 help/cmds2.help src/cmds.c src/patch.h

Log message:

added my localmodules patch from 1.6

---------------------- diff included ----------------------
Index: eggdrop1.7/doc/UPDATES1.6
diff -u eggdrop1.7/doc/UPDATES1.6:1.177 eggdrop1.7/doc/UPDATES1.6:1.178
--- eggdrop1.7/doc/UPDATES1.6:1.177	Wed Dec 19 23:02:18 2001
+++ eggdrop1.7/doc/UPDATES1.6	Fri Dec 28 12:31:38 2001
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.177 2001/12/20 05:02:18 guppy Exp $
+$Id: UPDATES1.6,v 1.178 2001/12/28 18:31:38 guppy Exp $
 
 Changes in eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.8
 Found by  Fixed by  What...
+Wcc       guppy     made cmd_modules work locally as well as remotely
           guppy     made show_banner reset the help_subst arguments like show_motd does
                     and if the motd isn't a regular file, just return instead of giving
                     an error like show_banner does
Index: eggdrop1.7/help/cmds2.help
diff -u eggdrop1.7/help/cmds2.help:1.12 eggdrop1.7/help/cmds2.help:1.13
--- eggdrop1.7/help/cmds2.help:1.12	Sat Dec  8 09:59:25 2001
+++ eggdrop1.7/help/cmds2.help	Fri Dec 28 12:31:39 2001
@@ -80,8 +80,9 @@
    dependancies & status report, you can get info only on a
    specific module by specifying it.
 %{help=modules}%{+n}
-###  %bmodules%b <botname>
-   requests a listing of the modules running on the remote bot
+###  %bmodules%b [botname]
+   requests a listing of the modules loaded on the remote bot or your
+   bot if no botname is specified.
 %{help=motd}
 ###  %bmotd%b [botname]
    will redisplay the party-line message of the day, which was
Index: eggdrop1.7/src/cmds.c
diff -u eggdrop1.7/src/cmds.c:1.82 eggdrop1.7/src/cmds.c:1.83
--- eggdrop1.7/src/cmds.c:1.82	Wed Dec 19 00:25:08 2001
+++ eggdrop1.7/src/cmds.c	Fri Dec 28 12:31:39 2001
@@ -3,7 +3,7 @@
  *   commands from a user via dcc
  *   (split in 2, this portion contains no-irc commands)
  *
- * $Id: cmds.c,v 1.82 2001/12/19 06:25:08 guppy Exp $
+ * $Id: cmds.c,v 1.83 2001/12/28 18:31:39 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -49,7 +49,7 @@
 extern char		 botnetnick[], origbotname[], ver[], network[],
 			 owner[], spaces[], quit_msg[];
 extern time_t		 now, online_since;
-
+extern module_entry *module_list;
 
 static char	*btos(unsigned long);
 
@@ -2604,13 +2604,20 @@
 static void cmd_modules(struct userrec *u, int idx, char *par)
 {
   int ptr;
+  char *bot;
+  module_entry *me;
 
-  if (!par[0])
-    dprintf(idx, _("Usage: modules <bot>\n"));
-  else {
-    putlog(LOG_CMDS, "*", "#%s# modules %s", dcc[idx].nick, par);
-    if ((ptr = nextbot(par)) >= 0)
-      dprintf(ptr, "v %s %s %d:%s\n", botnetnick, par, dcc[idx].sock,
+  putlog(LOG_CMDS, "*", "#%s# modules %s", dcc[idx].nick, par);
+
+  if (!par[0]) {  
+    dprintf(idx, "Modules loaded:\n");
+    for (me = module_list; me; me = me->next)
+      dprintf(idx, "  Module: %s (v%d.%d)\n", me->name, me->major, me->minor);
+    dprintf(idx, "End of modules list.\n");
+  } else {
+    bot = newsplit(&par);
+    if ((ptr = nextbot(bot)) >= 0)
+      dprintf(ptr, "v %s %s %d:%s\n", botnetnick, bot, dcc[idx].sock,
 	      dcc[idx].nick);
     else
       dprintf(idx, _("No such bot online.\n"));
Index: eggdrop1.7/src/patch.h
diff -u eggdrop1.7/src/patch.h:1.562 eggdrop1.7/src/patch.h:1.563
--- eggdrop1.7/src/patch.h:1.562	Wed Dec 19 22:57:47 2001
+++ eggdrop1.7/src/patch.h	Fri Dec 28 12:31:39 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.562 2001/12/20 04:57:47 guppy Exp $
+ * $Id: patch.h,v 1.563 2001/12/28 18:31:39 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,17 +41,17 @@
  *
  *
  */
-patch("1008824147");		/* current unixtime */
+patch("1009564068");		/* current unixtime */
 /*
  *
  *
  */
-patch("jumpfix");
+patch("localmodules");
 /*
  *
  *
  */
-patch("jumpfix");
+patch("localmodules");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list