summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-05-25 22:34:03 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-05-25 22:34:03 +0200
commite50be16730245e2ef5891ac4fc73ef38a34eadf6 (patch)
treebeee1e210ae9578b7bb7367f6a81c7fe3f406577 /src/plugins/irc/irc-protocol.c
parentd9789e522fd6120c7140a6d970503cc6433a6851 (diff)
downloadweechat-e50be16730245e2ef5891ac4fc73ef38a34eadf6.zip
irc: fix display of actions sent with `/me` (issue #139)
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r--src/plugins/irc/irc-protocol.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 56f63ba2a..2e27722e3 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -2959,6 +2959,7 @@ IRC_PROTOCOL_CALLBACK(pong)
void
irc_protocol_privmsg_display_ctcp_send (struct t_irc_server *server,
+ struct t_irc_channel *channel,
const char *target,
const char *arguments)
{
@@ -2981,7 +2982,7 @@ irc_protocol_privmsg_display_ctcp_send (struct t_irc_server *server,
ctcp_args = (pos_space) ?
weechat_strndup (pos_space + 1, pos_end - pos_space - 1) : NULL;
- irc_ctcp_display_send (server, target, ctcp_type, ctcp_args);
+ irc_ctcp_display_send (server, channel, target, ctcp_type, ctcp_args);
if (ctcp_type)
free (ctcp_type);
@@ -3052,8 +3053,8 @@ IRC_PROTOCOL_CALLBACK(privmsg)
{
if (nick_is_me)
{
- irc_protocol_privmsg_display_ctcp_send (server, pos_target,
- msg_args);
+ irc_protocol_privmsg_display_ctcp_send (
+ server, ptr_channel, pos_target, msg_args);
}
else
{
@@ -3156,8 +3157,8 @@ IRC_PROTOCOL_CALLBACK(privmsg)
{
if (nick_is_me)
{
- irc_protocol_privmsg_display_ctcp_send (server, remote_nick,
- msg_args);
+ irc_protocol_privmsg_display_ctcp_send (
+ server, NULL, remote_nick, msg_args);
}
else
{