From 269a0499b18a0c9ef50ef02158f2dbbc98385f38 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 17 Jan 2001 20:28:42 +0000 Subject: [PATCH] /WHOIS without parameters in query does now same as /WII git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1130 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-commands.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index 1b72e4f6..2c0f151d 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -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 &&