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);
}
}
}
controlreply(sender, "%s", whowas_format(ww));
+ controlreply(sender, "%s", whowas_formatchannels(ww));
controlreply(sender, "Done.");
return CMD_OK;