summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-05-27 15:56:07 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-05-27 16:49:08 +0200
commit1651c48856e45d27800890092d402615645bc95d (patch)
tree3a391fbc2ec289d3fe26cc5c33fdf146539f8e6a /src/plugins/irc/irc-protocol.c
parent649b9d0ca69a5655be17ad808b5121cb62a825b9 (diff)
downloadweechat-1651c48856e45d27800890092d402615645bc95d.zip
irc: add missing host tag in self messages with cap echo-message enabled (issue #139)
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r--src/plugins/irc/irc-protocol.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 3e0d241de..e62ad6d1e 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -2961,6 +2961,7 @@ void
irc_protocol_privmsg_display_ctcp_send (struct t_irc_server *server,
struct t_irc_channel *channel,
const char *target,
+ const char *address,
const char *arguments)
{
const char *pos_space, *pos_end;
@@ -2982,7 +2983,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, channel, target, ctcp_type, ctcp_args);
+ irc_ctcp_display_send (server, channel, target, address, ctcp_type, ctcp_args);
if (ctcp_type)
free (ctcp_type);
@@ -3054,7 +3055,7 @@ IRC_PROTOCOL_CALLBACK(privmsg)
if (nick_is_me)
{
irc_protocol_privmsg_display_ctcp_send (
- server, ptr_channel, params[0], msg_args);
+ server, ptr_channel, params[0], address, msg_args);
}
else
{
@@ -3162,7 +3163,7 @@ IRC_PROTOCOL_CALLBACK(privmsg)
if (nick_is_me)
{
irc_protocol_privmsg_display_ctcp_send (
- server, ptr_channel, remote_nick, msg_args);
+ server, ptr_channel, remote_nick, address, msg_args);
}
else
{