mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/WHOIS without parameters in query does now same as /WII <queried nick>
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1130 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0047f166be
commit
269a0499b1
@ -534,7 +534,10 @@ static void cmd_whois(const char *data, IRC_SERVER_REC *server,
|
|||||||
}
|
}
|
||||||
if (*query == '\0') {
|
if (*query == '\0') {
|
||||||
QUERY_REC *queryitem = QUERY(item);
|
QUERY_REC *queryitem = QUERY(item);
|
||||||
query = queryitem != NULL ? queryitem->name : server->nick;
|
if (queryitem == NULL)
|
||||||
|
query = server->nick;
|
||||||
|
else
|
||||||
|
query = qserver = queryitem->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(query, "*") == 0 &&
|
if (strcmp(query, "*") == 0 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user