Procházet zdrojové kódy

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

svn: 2171
Bryan Drewery před 21 roky
rodič
revize
8ce1f20a4b
3 změnil soubory, kde provedl 5 přidání a 3 odebrání
  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 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.
 * Added rate vars 'flood-msg' and 'flood-ctcp' to control how quickly a bot ignores on flood.
 * Fixed cosmetic bug with removing ignores.
 * 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
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.
 * 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
    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
    way.  they need to be raw irc codes. read rfc1459 from ftp.internic.net
    for more help.
    for more help.
+   '$n' is replaced with the bot's irc nickname.
 ::echo
 ::echo
 ###  $becho$b <on/off>
 ###  $becho$b <on/off>
    Specifies whether you want your messages echoed back to you. If it's on,
    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'
    $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, 
    $uD$u:    Detected vars have the folloing options: $bignore$b/0, $bwarn$b/1, $bdie$b/2, 
                                                       $breject$b/3, $bsuicide$b/4
                                                       $breject$b/3, $bsuicide$b/4
-
+ 
 [SL] $balias$b           List of dcc aliases in format '<alias> <cmd> [parms]'. First
 [SL] $balias$b           List of dcc aliases in format '<alias> <cmd> [parms]'. First
                           matching alias is used. Normal flag checking is done
                           matching alias is used. Normal flag checking is done
                           after the alias is expanded.
                           after the alias is expanded.
@@ -1508,7 +1509,7 @@ See also: reload, backup
                           (Resets PID/CPU)
                           (Resets PID/CPU)
 [R]  $bflood-msg$b       Msgs:Secs until a host is ignored. (0:0 to disable) 
 [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) 
 [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]  $blogin$b           How to handle someone logging in to the shell.
 [D]  $btrace$b           How to handle someone tracing/debugging the bot.
 [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.
 [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;
     return;
   }
   }
 
 
-  dprintf(DP_DUMP, "%s\n", par);
+  dprintf(DP_DUMP, "%s\n", replace(par, "$n", botname));
 }
 }
 
 
 static void cmd_jump(int idx, char *par)
 static void cmd_jump(int idx, char *par)