mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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
This commit is contained in:
parent
ffb294ae3f
commit
c4d88a3b72
@ -139,7 +139,9 @@ static void event_whois_realhost(IRC_SERVER_REC *server, const char *data)
|
|||||||
if (hostname != NULL) hostname += 5;
|
if (hostname != NULL) hostname += 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hostname == NULL) {
|
if (hostname != NULL) {
|
||||||
|
if (!strncmp(hostname, "*@", 2))
|
||||||
|
hostname += 2;
|
||||||
printformat(server, nick, MSGLEVEL_CRAP,
|
printformat(server, nick, MSGLEVEL_CRAP,
|
||||||
IRCTXT_WHOIS_REALHOST, nick, hostname, "");
|
IRCTXT_WHOIS_REALHOST, nick, hostname, "");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user