summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-09-30 12:37:24 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-09-30 12:37:24 +0200
commitca5c2947a4fd6bd044207c7e95829574a9ca7628 (patch)
tree5fdc62de5137d16c79942d2cea1ca95448f4dd9b /src/plugins/irc
parent613b53fa8b49dd2ff497c570c7518e16eacf3e3e (diff)
downloadweechat-ca5c2947a4fd6bd044207c7e95829574a9ca7628.zip
irc: display host in message "nick is back on server" (in private) only if host is set for nick
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c
index 17e9c18f9..ef89392a5 100644
--- a/src/plugins/irc/irc-channel.c
+++ b/src/plugins/irc/irc-channel.c
@@ -760,7 +760,7 @@ irc_channel_display_nick_back_in_pv (struct t_irc_server *server,
(nick) ? nick->name : nickname,
IRC_COLOR_CHAT_DELIMITERS,
IRC_COLOR_CHAT_HOST,
- (nick) ? nick->host : "",
+ (nick && nick->host) ? nick->host : "",
IRC_COLOR_CHAT_DELIMITERS,
IRC_COLOR_MESSAGE_JOIN);
}