From cfc22c700ce794b384daf819c2885de1362cc02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 26 Nov 2016 13:49:34 +0100 Subject: [PATCH] irc: add missing tags on CTCP message sent --- ChangeLog.adoc | 1 + src/plugins/irc/irc-command.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index a33bba4d3..fca848ddd 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -34,6 +34,7 @@ Bug fixes:: * core: fix deadlock when quitting after a signal SIGHUP/SIGQUIT/SIGTERM is received (issue #32) * core: fix display of empty lines in search mode (issue #829) * api: fix crash in function string_expand_home() when the HOME environment variable is not set (issue #827) + * irc: add missing tags on CTCP message sent * lua: fix integers returned in Lua >= 5.3 (issue #834) * relay: set status to "authentication failed" and close immediately connection in case of authentication failure in weechat and irc protocols (issue #825) diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 1cbac166c..82e44f433 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -1441,9 +1441,13 @@ IRC_COMMAND_CALLBACK(ctcp) ctcp_type, (ctcp_args) ? " " : "", (ctcp_args) ? ctcp_args : ""); - weechat_printf ( + weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer ( ptr_server, ctcp_target, NULL, "ctcp", NULL), + 0, + irc_protocol_tags ("privmsg", + "irc_ctcp,notify_none,no_highlight", + NULL, NULL), _("%sCTCP query to %s%s%s: %s%s%s%s%s"), weechat_prefix ("network"), irc_nick_color_for_msg (ptr_server, 0, NULL, ctcp_target),