about summary refs log tree commit diff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-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) {
/span>Hash to colors in the range 2-75June McEnroe 2020-02-10Improve color fudgingJune McEnroe 2020-02-10Support all 99 IRC colorsJune McEnroe 2020-02-10Avoid coloring mentions if there are control codesJune McEnroe 2020-02-10Recalculate unreadLines on reflowJune McEnroe 2020-02-10Only make windows hotterJune McEnroe 2020-02-10Always increase unreadLinesJune McEnroe 2020-02-10Move scroll marker on resizeJune McEnroe 2020-02-10Update line count for words longer than linesJune McEnroe 2020-02-10Simplify mark, heat, unread trackingJune McEnroe 2020-02-10Update prompt when own nick changesJune McEnroe 2020-02-10Match URLs surrounded by parenthesesJune McEnroe 2020-02-10Fix M-a so it properly cycles back to where it startedJune McEnroe 2020-02-09Add M-lJune McEnroe 2020-02-09Add /whoisJune McEnroe 2020-02-09Add /msgJune McEnroe