From c4d88a3b72a0d87c1c1bac4df3bf44db0e4f659a Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Fri, 2 Nov 2007 22:41:24 +0000 Subject: [PATCH] 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 --- src/fe-common/irc/fe-whois.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {