Procházet zdrojové kódy

* Ported [2432] to 1.2.9

svn: 2589
Bryan Drewery před 20 roky
rodič
revize
7b482ef44f
2 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 1 0
      doc/UPDATES
  2. 4 1
      src/set.c

+ 1 - 0
doc/UPDATES

@@ -20,6 +20,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed bot link getting colors. (fixes #161)
 * Fixed +r bots resolving users by resolved ip before host.
 * Fixed 2 socket leaks in the dns/socket code. (#167)
+* Fixed cmd_[bot]set showing an invalid example for using '-YES'
 
 1.2.8
 * Fixed [bot]* cmds depending on case of botnicks.

+ 4 - 1
src/set.c

@@ -755,7 +755,10 @@ void cmd_set_real(const char *botnick, int idx, char *par)
     if (!list && var->flags & VAR_LIST) {
       if (notyes) {
         dprintf(idx, "Using non-list functions on a list variable can be dangerous, please retype with -YES if you're sure:\n");
-        dprintf(idx, "%s%sset -YES %s ...\n", settings.dcc_prefix, botnick ? "bot" : "", var->name);
+        if (botnick)
+          dprintf(idx, "%sbotset %s -YES %s ...\n", settings.dcc_prefix, botnick, var->name);
+        else
+          dprintf(idx, "%sset -YES %s ...\n", settings.dcc_prefix, var->name);
         return;
       }
     }