From 4c6f503cc76d13d659cb79099af968f6592c82c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 26 May 2023 12:31:22 +0200 Subject: [PATCH] irc: display CTCP ACTION to channel on the channel buffer (issue #139, closes #207) --- ChangeLog.adoc | 1 + src/plugins/irc/irc-command.c | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index a41737985..b824fe7e7 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -43,6 +43,7 @@ New features:: * irc: rename "ssl" options to "tls", connect with TLS and port 6697 by default * irc: add support of capabilities "batch" and "draft/multiline" (issue #1292, issue #1923) * irc: add support of capability "echo-message" (issue #139) + * irc: display CTCP ACTION to channel on the channel buffer (issue #207) * irc: add modifier "irc_cap_sync_req" (issue #1767) * irc: add support of "LINELEN" in message 005 (max message length in bytes) (issue #1927) * irc: add support of "UTF8ONLY" in message 005 (issue #1688) diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 9d9285206..98f411006 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -1913,8 +1913,12 @@ IRC_COMMAND_CALLBACK(ctcp) /* display message only if capability "echo-message" is NOT enabled */ if (!weechat_hashtable_has_key (ptr_server->cap_list, "echo-message")) { - irc_ctcp_display_send (ptr_server, NULL, ctcp_target, ctcp_type, - ctcp_args); + irc_ctcp_display_send ( + ptr_server, + irc_channel_search (ptr_server, ctcp_target), + ctcp_target, + ctcp_type, + ctcp_args); } irc_ctcp_send (ptr_server, ctcp_target, ctcp_type, ctcp_args); }