From 385602e1e5a3922743bab9c861b7934794e8e342 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 4 Nov 2011 12:52:04 +0100 Subject: [PATCH] irc: add missing reset of color and attributes in display of nicks when joining channel --- src/plugins/irc/irc-protocol.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 65b903219..91fc350b9 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -3636,7 +3636,9 @@ IRC_PROTOCOL_CALLBACK(366) ((ptr_option) ? strlen (weechat_color (weechat_config_string (ptr_option))) : 0) + strlen (weechat_infolist_string (infolist, "prefix")) + 16 + /* nick color */ - strlen (weechat_infolist_string (infolist, "name")) + 1; + strlen (weechat_infolist_string (infolist, "name")) + + 16 + /* reset color */ + 1; /* space */ } } if (length > 0) @@ -3652,7 +3654,10 @@ IRC_PROTOCOL_CALLBACK(366) "nick") == 0) { if (i > 0) + { + strcat (string, IRC_COLOR_RESET); strcat (string, " "); + } prefix = weechat_infolist_string (infolist, "prefix"); if (prefix[0] && (prefix[0] != ' ')) {