summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@irssi.org>2007-11-02 22:41:24 +0000
committerjilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-11-02 22:41:24 +0000
commitc4d88a3b72a0d87c1c1bac4df3bf44db0e4f659a (patch)
treeccaf4bec6aaf55f2dfb185339a1be01a87ecf465 /src
parentffb294ae3f00348bf5f14d1d92fd17b29aeb17e9 (diff)
downloadirssi-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')
-rw-r--r--src/fe-common/irc/fe-whois.c4
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 {