]> jfr.im git - irc/quakenet/newserv.git/blobdiff - whowas/whowas_commands.c
Update README.
[irc/quakenet/newserv.git] / whowas / whowas_commands.c
index 946111ea52166b60e5e497fa60425e19bcfdfbf2..50337b4c52a9704f2f138abba0ddc6bfeaa38c91 100644 (file)
@@ -38,9 +38,10 @@ static int whowas_cmdwhowas(void *source, int cargc, char **cargv) {
     if (match2strings(pattern, hostmask)) {
       matches++;
 
-      if (matches <= limit)
+      if (matches <= limit) {
         controlreply(sender, "%s", whowas_format(ww));
-      else if (matches == limit + 1)
+        controlreply(sender, "%s", whowas_formatchannels(ww));
+      } else if (matches == limit + 1)
         controlreply(sender, "--- More than %d matches, skipping the rest", limit);
     }
   }
@@ -65,6 +66,7 @@ static int whowas_cmdwhowaschase(void *source, int cargc, char **cargv) {
   }
 
   controlreply(sender, "%s", whowas_format(ww));
+  controlreply(sender, "%s", whowas_formatchannels(ww));
   controlreply(sender, "Done.");
 
   return CMD_OK;