diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-26 12:31:22 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-26 12:31:22 +0200 |
commit | 4c6f503cc76d13d659cb79099af968f6592c82c3 (patch) | |
tree | f3c46c2841872477303aa81ed699f2e01a0f0cef | |
parent | c1ee4930732412f45690b9cba244614d35b28bd9 (diff) | |
download | weechat-4c6f503cc76d13d659cb79099af968f6592c82c3.zip |
irc: display CTCP ACTION to channel on the channel buffer (issue #139, closes #207)
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | 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); } |