1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

irc: add missing tags on self action messages when capability echo-message is enabled (closes #2074)

This commit is contained in:
Sébastien Helleu
2024-02-16 20:58:31 +01:00
parent 162bcb2622
commit 90c87e7553
6 changed files with 90 additions and 46 deletions
+6
View File
@@ -389,6 +389,7 @@ irc_command_me_channel_message (struct t_irc_server *server,
server,
0, /* date */
0, /* date_usec */
NULL, /* tags */
channel_name,
NULL, /* address */
"privmsg",
@@ -1976,6 +1977,7 @@ IRC_COMMAND_CALLBACK(ctcp)
ptr_server,
0, /* date */
0, /* date_usec */
NULL, /* tags */
ctcp_target,
NULL, /* address */
"privmsg",
@@ -3844,6 +3846,7 @@ IRC_COMMAND_CALLBACK(msg)
ptr_server,
0, /* date */
0, /* date_usec */
NULL, /* tags */
ptr_channel->name,
NULL, /* address */
"privmsg",
@@ -3868,6 +3871,7 @@ IRC_COMMAND_CALLBACK(msg)
ptr_server,
0, /* date */
0, /* date_usec */
NULL, /* tags */
targets[i],
NULL, /* address */
"privmsg",
@@ -4070,6 +4074,7 @@ IRC_COMMAND_CALLBACK(notice)
ptr_server,
0, /* date */
0, /* date_usec */
NULL, /* tags */
argv[arg_target],
NULL, /* address */
"notice",
@@ -4601,6 +4606,7 @@ IRC_COMMAND_CALLBACK(query)
ptr_server,
0, /* date */
0, /* date_usec */
NULL, /* tags */
ptr_channel->name,
NULL, /* address */
"privmsg",
+3
View File
@@ -65,6 +65,7 @@ void
irc_input_user_message_display (struct t_irc_server *server,
time_t date,
int date_usec,
struct t_hashtable *tags,
const char *target,
const char *address,
const char *command,
@@ -88,6 +89,7 @@ irc_input_user_message_display (struct t_irc_server *server,
ctxt.server = server;
ctxt.date = date;
ctxt.date_usec = date_usec;
ctxt.tags = tags;
ctxt.address = (char *)address;
ctxt.command = (char *)command;
@@ -325,6 +327,7 @@ irc_input_send_user_message (struct t_gui_buffer *buffer, int flags,
ptr_server,
0, /* date */
0, /* date_usec */
NULL, /* tags */
ptr_channel->name,
NULL, /* address */
"privmsg",
+2
View File
@@ -22,11 +22,13 @@
#include <time.h>
struct t_hashtable;
struct t_gui_buffer;
extern void irc_input_user_message_display (struct t_irc_server *server,
time_t date,
int date_usec,
struct t_hashtable *tags,
const char *target,
const char *address,
const char *command,
+2
View File
@@ -3056,6 +3056,7 @@ irc_protocol_privmsg_display_ctcp_send (struct t_irc_protocol_ctxt *ctxt,
ctxt->server,
ctxt->date,
ctxt->date_usec,
ctxt->tags,
target,
ctxt->address,
"privmsg",
@@ -3347,6 +3348,7 @@ IRC_PROTOCOL_CALLBACK(privmsg)
ctxt->server,
ctxt->date,
ctxt->date_usec,
ctxt->tags,
remote_nick,
ctxt->address,
"privmsg",