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.weechat-hashes
parent
2b8a45779d
commit
dce6c11cf6
|
@ -296,8 +296,12 @@ static void commandList(uint id, char *params) {
|
||||||
static void commandWhois(uint id, char *params) {
|
static void commandWhois(uint id, char *params) {
|
||||||
(void)id;
|
(void)id;
|
||||||
if (!params) return;
|
if (!params) return;
|
||||||
ircFormat("WHOIS :%s\r\n", params);
|
uint count = 1;
|
||||||
replies.whois++;
|
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) {
|
static void commandNS(uint id, char *params) {
|
||||||
|
|
Loading…
Reference in New Issue