diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-06-24 09:46:29 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-06-24 09:46:29 +0200 |
commit | 6292896021188d690b258731cbf7680f76d2fe64 (patch) | |
tree | 759407712c5907e2d4d91170a69f67c7d869aa6c /src/plugins/irc | |
parent | db690fbf91c01d1c41bda9c17f98b85f597e30c2 (diff) | |
download | weechat-6292896021188d690b258731cbf7680f76d2fe64.zip |
irc: add channel color in message 354 with missing parameters (issue #1212)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 67f4306ba..4bfdfdf38 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -4782,9 +4782,15 @@ IRC_PROTOCOL_CALLBACK(354) server, NULL, command, "who", NULL), date, irc_protocol_tags (command, "irc_numeric", NULL, NULL), - "%s%s", + "%s%s[%s%s%s]%s%s%s", weechat_prefix ("network"), - argv_eol[3]); + IRC_COLOR_CHAT_DELIMITERS, + IRC_COLOR_CHAT_CHANNEL, + argv[3], + IRC_COLOR_CHAT_DELIMITERS, + IRC_COLOR_RESET, + (argc > 4) ? " " : "", + (argc > 4) ? argv_eol[4] : ""); } return WEECHAT_RC_OK; } |