diff options
author | Jilles Tjoelker <jilles@irssi.org> | 2007-11-02 22:41:24 +0000 |
---|---|---|
committer | jilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-11-02 22:41:24 +0000 |
commit | c4d88a3b72a0d87c1c1bac4df3bf44db0e4f659a (patch) | |
tree | ccaf4bec6aaf55f2dfb185339a1be01a87ecf465 /src/fe-common/irc/fe-whois.c | |
parent | ffb294ae3f00348bf5f14d1d92fd17b29aeb17e9 (diff) | |
download | irssi-c4d88a3b72a0d87c1c1bac4df3bf44db0e4f659a.zip |
Fix RPL_WHOISHOST (378) code and strip off the "*@" from the hostname.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4635 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-whois.c')
-rw-r--r-- | src/fe-common/irc/fe-whois.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-whois.c b/src/fe-common/irc/fe-whois.c index 4ecfd77e..1e29d751 100644 --- a/src/fe-common/irc/fe-whois.c +++ b/src/fe-common/irc/fe-whois.c @@ -139,7 +139,9 @@ static void event_whois_realhost(IRC_SERVER_REC *server, const char *data) if (hostname != NULL) hostname += 5; } - if (hostname == NULL) { + if (hostname != NULL) { + if (!strncmp(hostname, "*@", 2)) + hostname += 2; printformat(server, nick, MSGLEVEL_CRAP, IRCTXT_WHOIS_REALHOST, nick, hostname, ""); } else { |