diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-17 20:28:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-17 20:28:42 +0000 |
commit | 269a0499b18a0c9ef50ef02158f2dbbc98385f38 (patch) | |
tree | 9369ef234bfbed51b4ff3375f41b9c6c2c8861d4 /src/irc | |
parent | 0047f166be9787cc3c3bd3af7a35ff9c628658f8 (diff) | |
download | irssi-269a0499b18a0c9ef50ef02158f2dbbc98385f38.zip |
/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
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 && |