1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 01:33:12 +02:00

irc: add tag "self_msg" on self messages (closes #840)

This commit is contained in:
Sébastien Helleu
2016-11-26 13:58:16 +01:00
parent cfc22c700c
commit 377fad22db
25 changed files with 192 additions and 182 deletions
+7 -5
View File
@@ -643,7 +643,8 @@ irc_command_me_channel_display (struct t_irc_server *server,
weechat_printf_date_tags (
channel->buffer,
0,
irc_protocol_tags ("privmsg", "irc_action,notify_none,no_highlight",
irc_protocol_tags ("privmsg",
"irc_action,self_msg,notify_none,no_highlight",
server->nick, NULL),
"%s%s%s%s%s%s%s",
weechat_prefix ("action"),
@@ -1446,7 +1447,7 @@ IRC_COMMAND_CALLBACK(ctcp)
ptr_server, ctcp_target, NULL, "ctcp", NULL),
0,
irc_protocol_tags ("privmsg",
"irc_ctcp,notify_none,no_highlight",
"irc_ctcp,self_msg,notify_none,no_highlight",
NULL, NULL),
_("%sCTCP query to %s%s%s: %s%s%s%s%s"),
weechat_prefix ("network"),
@@ -3170,7 +3171,7 @@ IRC_COMMAND_CALLBACK(msg)
weechat_printf_date_tags (
ptr_channel2->buffer,
0,
"notify_none,no_highlight",
"self_msg,notify_none,no_highlight",
"%s%s%s -> %s%s%s: %s",
weechat_prefix ("network"),
"Msg",
@@ -3260,7 +3261,8 @@ IRC_COMMAND_CALLBACK(msg)
ptr_server->buffer,
0,
irc_protocol_tags (
"privmsg", "notify_none,no_highlight",
"privmsg",
"self_msg,notify_none,no_highlight",
ptr_server->nick, NULL),
"%sMSG%s(%s%s%s)%s: %s",
weechat_prefix ("network"),
@@ -3441,7 +3443,7 @@ IRC_COMMAND_CALLBACK(notice)
ptr_server, argv[arg_target], "notice", NULL,
(ptr_channel) ? ptr_channel->buffer : NULL),
0,
"notify_none,no_highlight",
"self_msg,notify_none,no_highlight",
"%s%s%s%s -> %s%s%s: %s",
weechat_prefix ("network"),
IRC_COLOR_NOTICE,
+14 -11
View File
@@ -298,7 +298,8 @@ irc_ctcp_reply_to_nick (struct t_irc_server *server,
0,
irc_protocol_tags (
command,
"irc_ctcp,irc_ctcp_reply,notify_none,no_highlight",
"irc_ctcp,irc_ctcp_reply,self_msg,notify_none,"
"no_highlight",
NULL, NULL),
_("%sCTCP reply to %s%s%s: %s%s%s%s%s"),
weechat_prefix ("network"),
@@ -1015,11 +1016,12 @@ irc_ctcp_recv (struct t_irc_server *server, time_t date, const char *command,
weechat_printf_date_tags (
channel->buffer,
date,
irc_protocol_tags (command,
(nick_is_me) ?
"irc_action,notify_none,no_highlight" :
"irc_action,notify_message",
nick, address),
irc_protocol_tags (
command,
(nick_is_me) ?
"irc_action,self_msg,notify_none,no_highlight" :
"irc_action,notify_message",
nick, address),
"%s%s%s%s%s%s%s",
weechat_prefix ("action"),
irc_nick_mode_for_display (server, ptr_nick, 0),
@@ -1054,11 +1056,12 @@ irc_ctcp_recv (struct t_irc_server *server, time_t date, const char *command,
weechat_printf_date_tags (
ptr_channel->buffer,
date,
irc_protocol_tags (command,
(nick_is_me) ?
"irc_action,notify_none,no_highlight" :
"irc_action,notify_private",
nick, address),
irc_protocol_tags (
command,
(nick_is_me) ?
"irc_action,self_msg,notify_none,no_highlight" :
"irc_action,notify_private",
nick, address),
"%s%s%s%s%s%s",
weechat_prefix ("action"),
(nick_is_me) ?
+2 -2
View File
@@ -82,7 +82,7 @@ irc_input_user_message_display (struct t_gui_buffer *buffer, int action,
if (action)
{
snprintf (str_tags, sizeof (str_tags),
"irc_action,notify_none,no_highlight");
"irc_action,self_msg,notify_none,no_highlight");
}
else
{
@@ -90,7 +90,7 @@ irc_input_user_message_display (struct t_gui_buffer *buffer, int action,
weechat_config_color (
weechat_config_get ("weechat.color.chat_nick_self")));
snprintf (str_tags, sizeof (str_tags),
"notify_none,no_highlight,prefix_nick_%s",
"notify_none,self_msg,no_highlight,prefix_nick_%s",
(str_color) ? str_color : "default");
if (str_color)
free (str_color);
+1 -1
View File
@@ -2043,7 +2043,7 @@ IRC_PROTOCOL_CALLBACK(privmsg)
if (nick_is_me)
{
snprintf (str_tags, sizeof (str_tags),
"notify_none,no_highlight,prefix_nick_%s",
"self_msg,notify_none,no_highlight,prefix_nick_%s",
(str_color) ? str_color : "default");
}
else