瀏覽代碼

* Port [2982] to 1.2.11
* Made requested changes to cmd_dump to help clear up confusion. (fixes #269)


svn: 2983

Bryan Drewery 20 年之前
父節點
當前提交
cd0b4cf106
共有 3 個文件被更改,包括 7 次插入2 次删除
  1. 1 0
      doc/UPDATES
  2. 3 0
      misc/help.txt
  3. 3 2
      src/mod/server.mod/cmdsserv.c

+ 1 - 0
doc/UPDATES

@@ -19,6 +19,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Clean and speedup ban/exempt/invite processing. (addresses #277)
 * Fix processing of localhubs when binary is editted. (fixes #274)
 * Fix some minor bugs with cmd_conf. (fixes #284)
+* Made requested changes to cmd_dump to help clear up confusion. (fixes #269)
 
 1.2.10 - http://tracker.shatow.net/milestone/1.2.10
 * Removed old references to '+/-manop' and '+/-nomop' for chaninfo in help file.

+ 3 - 0
misc/help.txt

@@ -891,6 +891,9 @@ See also: bots
    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.
+ 
+   ** Only permanent owners specified in the binary COMPILE config file **
+   ** can use this cmd.                                                 **
 ::echo
 ###  $becho$b <on/off>
    Specifies whether you want your messages echoed back to you. If it's on,

+ 3 - 2
src/mod/server.mod/cmdsserv.c

@@ -33,8 +33,9 @@ static void cmd_dump(int idx, char *par)
   putlog(LOG_CMDS, "*", "#%s# dump %s", dcc[idx].nick, par);
 
   if (!isowner(dcc[idx].nick)) {
-    dprintf(idx, "What?  You need '%shelp'\n", settings.dcc_prefix);
-    return;
+    putlog(LOG_WARN, "*", "%s attempted 'dump' %s", dcc[idx].nick, par);
+    dprintf(idx, "dump is only available to permanent owners.\n");
+    return
   }
   if (!par[0]) {
     dprintf(idx, "Usage: dump <server stuff>\n");