Sfoglia il codice sorgente

Merge branch 'botcmd-unknown-group' into maint

* botcmd-unknown-group:
  Fix no bots found when group passed in

Conflicts:
	doc/UPDATES
Bryan Drewery 13 anni fa
parent
commit
33863678c6
2 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 1 0
      doc/UPDATES
  2. 6 2
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -1,5 +1,6 @@
 maint
   * Read in /etc/hosts on startup
+  * Fix 'bl %group cmd' giving incorrect message when group/bots not found.
 
 1.4.3
   * Default 'set promisc' to ignore since it's usually a false positive

+ 6 - 2
src/cmds.c

@@ -1500,8 +1500,12 @@ static void cmd_botcmd(int idx, char *par)
     check_bind_dcc(cmd, idx, par);
   }
 
-  if (!found)
-    dprintf(idx, "No bot matching '%s' linked\n", botm);
+  if (!found) {
+    if (group)
+      dprintf(idx, "No linked bots found in group '%s'\n", group);
+    else
+      dprintf(idx, "No bot matching '%s' linked\n", botm);
+  }
 
   return;
 }