summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--command.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/command.c b/command.c
index 4c51433..0d988cd 100644
--- a/command.c
+++ b/command.c
@@ -296,8 +296,12 @@ static void commandList(uint id, char *params) {
 static void commandWhois(uint id, char *params) {
 	(void)id;
 	if (!params) return;
-	ircFormat("WHOIS :%s\r\n", params);
-	replies.whois++;
+	uint count = 1;
+	for (char *ch = params; *ch; ++ch) {
+		if (*ch == ',') count++;
+	}
+	ircFormat("WHOIS %s\r\n", params);
+	replies.whois += count;
 }
 
 static void commandNS(uint id, char *params) {
65cb480cc3c6c&follow=1'>Source ~/.profile.local if it existsJune McEnroe 2022-03-18Publish "Addendum 2021"June McEnroe 2022-03-16Remove wcwidth portJune McEnroe DYLD_FORCE_FLAT_NAMESPACE no longer exists in macOS 12 so this approach doesn't work anymore. Moved to <https://git.causal.agency/jorts/tree/wcwidth> and compiled into <https://git.causal.agency/jorts/tree/ncurses>. 2022-03-16Remove -j4 from ./PlanJune McEnroe Plan learned to set this automatically! 2022-03-15Rewrite Linux install.sh for DebianJune McEnroe 2022-03-15Remove dashJune McEnroe