Bläddra i källkod

* cmd_dump now has a substitution. '$n' is replaced with the bot's current IRC nick.

svn: 2171
Bryan Drewery 21 år sedan
förälder
incheckning
8ce1f20a4b
3 ändrade filer med 5 tillägg och 3 borttagningar
  1. 1 0
      doc/UPDATES
  2. 3 2
      misc/help.txt
  3. 1 1
      src/mod/server.mod/cmdsserv.c

+ 1 - 0
doc/UPDATES

@@ -152,6 +152,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Added var 'autoaway': How long in seconds until an idle user is set away on dcc auto. (Def: 1800, 30min)
 * Added rate vars 'flood-msg' and 'flood-ctcp' to control how quickly a bot ignores on flood.
 * Fixed cosmetic bug with removing ignores.
+* cmd_dump now has a substitution. '$n' is replaced with the bot's current IRC nick.
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 3 - 2
misc/help.txt

@@ -903,6 +903,7 @@ See also: bots
    run through ircII, so ircII commands will most likely not work this
    way.  they need to be raw irc codes. read rfc1459 from ftp.internic.net
    for more help.
+   '$n' is replaced with the bot's irc nickname.
 ::echo
 ###  $becho$b <on/off>
    Specifies whether you want your messages echoed back to you. If it's on,
@@ -1483,7 +1484,7 @@ See also: reload, backup
    $uR$u:    Rate. Set as 'number:interval', ie, '1:5'
    $uD$u:    Detected vars have the folloing options: $bignore$b/0, $bwarn$b/1, $bdie$b/2, 
                                                       $breject$b/3, $bsuicide$b/4
-
+ 
 [SL] $balias$b           List of dcc aliases in format '<alias> <cmd> [parms]'. First
                           matching alias is used. Normal flag checking is done
                           after the alias is expanded.
@@ -1508,7 +1509,7 @@ See also: reload, backup
                           (Resets PID/CPU)
 [R]  $bflood-msg$b       Msgs:Secs until a host is ignored. (0:0 to disable) 
 [R]  $bflood-ctcp$b      Ctcps:Secs until a host is ignored. (0:0 to disable) 
-
+ 
 [D]  $blogin$b           How to handle someone logging in to the shell.
 [D]  $btrace$b           How to handle someone tracing/debugging the bot.
 [D]  $bpromisc$b         How to handle when a interface is set to promiscuous mode.

+ 1 - 1
src/mod/server.mod/cmdsserv.c

@@ -41,7 +41,7 @@ static void cmd_dump(int idx, char *par)
     return;
   }
 
-  dprintf(DP_DUMP, "%s\n", par);
+  dprintf(DP_DUMP, "%s\n", replace(par, "$n", botname));
 }
 
 static void cmd_jump(int idx, char *par)