Просмотр исходного кода

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


svn: 2983

Bryan Drewery 20 лет назад
Родитель
Сommit
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)
 * Clean and speedup ban/exempt/invite processing. (addresses #277)
 * Fix processing of localhubs when binary is editted. (fixes #274)
 * Fix processing of localhubs when binary is editted. (fixes #274)
 * Fix some minor bugs with cmd_conf. (fixes #284)
 * 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
 1.2.10 - http://tracker.shatow.net/milestone/1.2.10
 * Removed old references to '+/-manop' and '+/-nomop' for chaninfo in help file.
 * 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
    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.
    '$n' is replaced with the bot's irc nickname.
+ 
+   ** Only permanent owners specified in the binary COMPILE config file **
+   ** can use this cmd.                                                 **
 ::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,

+ 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);
   putlog(LOG_CMDS, "*", "#%s# dump %s", dcc[idx].nick, par);
 
 
   if (!isowner(dcc[idx].nick)) {
   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]) {
   if (!par[0]) {
     dprintf(idx, "Usage: dump <server stuff>\n");
     dprintf(idx, "Usage: dump <server stuff>\n");