From 6292896021188d690b258731cbf7680f76d2fe64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 24 Jun 2018 09:46:29 +0200 Subject: [PATCH] irc: add channel color in message 354 with missing parameters (issue #1212) --- src/plugins/irc/irc-protocol.c | 10 ++++++++-- 1 file 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; }