diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-12-17 16:36:01 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-12-17 16:36:01 +0100 |
commit | abb6b4d76e5babc827b77b396ac9fbd4e54a80aa (patch) | |
tree | e3b4f9ba21d4622d30314531f7bf7642add90e9d | |
parent | adb1fe07475624f546c2df2603036cfa9a0caa72 (diff) | |
download | weechat-abb6b4d76e5babc827b77b396ac9fbd4e54a80aa.zip |
Use nick color for display of IRC action messages
-rw-r--r-- | src/core/wee-config.c | 2 | ||||
-rw-r--r-- | src/plugins/irc/irc-command.c | 2 | ||||
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 6 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 932c1f77d..51a8ff243 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -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, diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index ddeecd03a..30edaa866 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -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 : ""); diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 02bb7727b..1e91fd9d6 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -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); |