1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

Use nick color for display of IRC action messages

This commit is contained in:
Sebastien Helleu
2008-12-17 16:36:01 +01:00
parent adb1fe0747
commit abb6b4d76e
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -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 : "");
+4 -2
View File
@@ -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);