diff options
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-commands.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 && |