diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-11-04 12:52:04 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-11-04 12:52:04 +0100 |
commit | 385602e1e5a3922743bab9c861b7934794e8e342 (patch) | |
tree | 2ea95ec38ef12886a6b9d00c04ab3d740a9f7f62 /src/plugins | |
parent | 8503857d28a41e42e0d232a508b1534827c7e737 (diff) | |
download | weechat-385602e1e5a3922743bab9c861b7934794e8e342.zip |
irc: add missing reset of color and attributes in display of nicks when joining channel
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 7 |
1 files changed, 6 insertions, 1 deletions
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] != ' ')) { |