Allow 2-param form of /whois, count comma-separated nicks
I do not feel like documenting the 2-param form of /whois because it is weird, but it should work for those who already know about it.master
parent
2b8a45779d
commit
dce6c11cf6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue