1
0
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:
Timo Sirainen 2001-01-17 20:28:42 +00:00 committed by cras
parent 0047f166be
commit 269a0499b1

View File

@ -534,7 +534,10 @@ static void cmd_whois(const char *data, IRC_SERVER_REC *server,
}
if (*query == '\0') {
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 &&