[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Thu Dec 20 00:33:00 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-12-20 06:32:11 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

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.258 eggdrop1.6/doc/UPDATES1.6:1.259
--- eggdrop1.6/doc/UPDATES1.6:1.258	Wed Dec 19 22:53:27 2001
+++ eggdrop1.6/doc/UPDATES1.6	Thu Dec 20 00:32:00 2001
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.258 2001/12/20 04:53:27 guppy Exp $
+$Id: UPDATES1.6,v 1.259 2001/12/20 06:32:00 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.6/help/cmds2.help
diff -u eggdrop1.6/help/cmds2.help:1.12 eggdrop1.6/help/cmds2.help:1.13
--- eggdrop1.6/help/cmds2.help:1.12	Sat Dec  1 15:45:10 2001
+++ eggdrop1.6/help/cmds2.help	Thu Dec 20 00:32:00 2001
@@ -80,8 +80,9 @@
    dependencies & 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.6/src/cmds.c
diff -u eggdrop1.6/src/cmds.c:1.67 eggdrop1.6/src/cmds.c:1.68
--- eggdrop1.6/src/cmds.c:1.67	Sun Dec 16 08:55:59 2001
+++ eggdrop1.6/src/cmds.c	Thu Dec 20 00:32:01 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.67 2001/12/16 14:55:59 guppy Exp $
+ * $Id: cmds.c,v 1.68 2001/12/20 06:32:01 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -50,7 +50,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);
 
@@ -2577,13 +2577,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,
+
+  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.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.635 eggdrop1.6/src/patch.h:1.636
--- eggdrop1.6/src/patch.h:1.635	Wed Dec 19 18:10:43 2001
+++ eggdrop1.6/src/patch.h	Thu Dec 20 00:32:01 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.635 2001/12/20 00:10:43 guppy Exp $
+ * $Id: patch.h,v 1.636 2001/12/20 06:32:01 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1008806911");		/* current unixtime */
+patch("1008829805");		/* current unixtime */
 /*
  *
  *
  */
-patch("small-fixes2");
+patch("localmodules");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list