mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 04:46:37 +02:00
Use nick color for display of IRC action messages
This commit is contained in:
@@ -1378,7 +1378,7 @@ config_weechat_init ()
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_other", "color",
|
||||
N_("text color for other nick in private buffer"),
|
||||
NULL, GUI_COLOR_CHAT_NICK_OTHER, 0, "default", NULL,
|
||||
NULL, GUI_COLOR_CHAT_NICK_OTHER, 0, "cyan", NULL,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[0] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
|
||||
@@ -86,7 +86,7 @@ irc_command_me_channel (struct t_irc_server *server,
|
||||
weechat_printf (channel->buffer,
|
||||
"%s%s%s %s%s",
|
||||
weechat_prefix ("action"),
|
||||
IRC_COLOR_CHAT_NICK,
|
||||
IRC_COLOR_CHAT_NICK_SELF,
|
||||
server->nick,
|
||||
IRC_COLOR_CHAT,
|
||||
(string) ? string : "");
|
||||
|
||||
@@ -1220,12 +1220,14 @@ irc_protocol_cmd_privmsg (struct t_irc_server *server, const char *command,
|
||||
if (pos_end_01)
|
||||
pos_end_01[0] = '\0';
|
||||
|
||||
ptr_nick = irc_nick_search (ptr_channel, nick);
|
||||
|
||||
weechat_printf_tags (ptr_channel->buffer,
|
||||
irc_protocol_tags (command,
|
||||
"irc_action,notify_message"),
|
||||
"%s%s%s %s%s",
|
||||
weechat_prefix ("action"),
|
||||
IRC_COLOR_CHAT_NICK,
|
||||
(ptr_nick) ? ptr_nick->color : IRC_COLOR_CHAT_NICK,
|
||||
nick,
|
||||
IRC_COLOR_CHAT,
|
||||
pos_args);
|
||||
@@ -1968,7 +1970,7 @@ irc_protocol_cmd_privmsg (struct t_irc_server *server, const char *command,
|
||||
"irc_action,notify_private"),
|
||||
"%s%s%s %s%s",
|
||||
weechat_prefix ("action"),
|
||||
IRC_COLOR_CHAT_NICK,
|
||||
IRC_COLOR_CHAT_NICK_OTHER,
|
||||
nick,
|
||||
IRC_COLOR_CHAT,
|
||||
pos_args);
|
||||
|
||||
Reference in New Issue
Block a user