[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sat Dec 8 10:17:00 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-08 16:16:49 UTC
Commited by: Federico Mennite <ite at techmonkeys.org>

Modified files:
     doc/text-substitutions.doc doc/html/app-textsub.html
     help/set/cmds1.help src/misc.c

Log message:

Added %n for  to the list of motd text substitutions. Patch by Benoit Timbert <Benoit.TIMBERT at free.fr>

---------------------- diff included ----------------------
Index: eggdrop1.7/doc/html/app-textsub.html
diff -u eggdrop1.7/doc/html/app-textsub.html:1.8 eggdrop1.7/doc/html/app-textsub.html:1.9
--- eggdrop1.7/doc/html/app-textsub.html:1.8	Wed Oct 10 08:15:58 2001
+++ eggdrop1.7/doc/html/app-textsub.html	Sat Dec  8 10:16:38 2001
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<!-- $Id: app-textsub.html,v 1.8 2001/10/10 13:15:58 tothwolf Exp $ -->
+<!-- $Id: app-textsub.html,v 1.9 2001/12/08 16:16:38 ite Exp $ -->
 
 <html>
   <head>
@@ -56,6 +56,11 @@
 
         <dd>whatever is set in &#39;admin&#39; (see &#39;set
         admin&#39;)</dd>
+
+        <dt><strong>%n</strong></dt>
+
+        <dd>whatever is set in &#39;network&#39; (see &#39;set
+        network&#39;)</dd>
 
         <dt><strong>%T</strong></dt>
 
Index: eggdrop1.7/doc/text-substitutions.doc
diff -u eggdrop1.7/doc/text-substitutions.doc:1.6 eggdrop1.7/doc/text-substitutions.doc:1.7
--- eggdrop1.7/doc/text-substitutions.doc:1.6	Sun Dec  2 06:48:55 2001
+++ eggdrop1.7/doc/text-substitutions.doc	Sat Dec  8 10:16:38 2001
@@ -15,6 +15,7 @@
  %E   long form of %V (ie, "Eggdrop v1.7.0  (C) 1997 Robey Pointer (C) 1999, 2000, 2001  Eggheads")
  %C   channels the bot is on (ie, "#lamest, #botnetcentral")
  %A   whatever is set in 'admin' (see 'set admin')
+ %n   whatever is set in 'network' (see 'set network')
  %T   the current time (ie, "15:00")
  %N   the current user's nickname (ie, "Robey")
  %U   the current operating system the bot is on
Index: eggdrop1.7/help/set/cmds1.help
diff -u eggdrop1.7/help/set/cmds1.help:1.3 eggdrop1.7/help/set/cmds1.help:1.4
--- eggdrop1.7/help/set/cmds1.help:1.3	Sat Aug 18 21:36:22 2001
+++ eggdrop1.7/help/set/cmds1.help	Sat Dec  8 10:16:39 2001
@@ -27,6 +27,7 @@
       %%E   long form of %%V (ie, "%E")
       %%C   channels the bot is on (ie, "%C")
       %%A   whatever is set in 'admin' (see 'set admin')
+      %%n   whatever is set in 'network' (see 'set network')
       %%T   the current time (ie, "%T")
       %%N   the current user's nickname (ie, "%N")
       %%U   the current operating system the bot is on
Index: eggdrop1.7/src/misc.c
diff -u eggdrop1.7/src/misc.c:1.52 eggdrop1.7/src/misc.c:1.53
--- eggdrop1.7/src/misc.c:1.52	Tue Oct 30 22:02:51 2001
+++ eggdrop1.7/src/misc.c	Sat Dec  8 10:16:39 2001
@@ -6,7 +6,7 @@
  *   help system
  *   motd display and %var substitution
  *
- * $Id: misc.c,v 1.52 2001/10/31 04:02:51 tothwolf Exp $
+ * $Id: misc.c,v 1.53 2001/12/08 16:16:39 ite Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -42,7 +42,7 @@
 extern struct dcc_t	*dcc;
 extern struct chanset_t	*chanset;
 extern char		 helpdir[], version[], origbotname[], botname[],
-			 admin[], motdfile[], ver[], botnetnick[],
+			 admin[], network[], motdfile[], ver[], botnetnick[],
 			 bannerfile[], textdir[];
 extern int		 backgrd, con_chan, term_z, use_stderr, dcc_total,
 			 strict_host;
@@ -500,6 +500,7 @@
  * %C = list of channels i monitor
  * %E = eggdrop banner
  * %A = admin line
+ * %n = network name
  * %T = current time ("14:15")
  * %N = user's nickname
  * %U = display system name if possible
@@ -636,6 +637,9 @@
       break;
     case 'A':
       towrite = admin;
+      break;
+    case 'n';
+      towrite = network;
       break;
     case 'T':
       strftime(sub, 6, "%H:%M", localtime(&now));
----------------------- End of diff -----------------------



More information about the Changes mailing list