irc: add separate color option for current topic in channel buffer
This commit is contained in:
parent
b1bd5c721e
commit
6ef0e5ec1e
@ -86,6 +86,7 @@
|
||||
#define IRC_COLOR_MESSAGE_JOIN weechat_color(weechat_config_string(irc_config_color_message_join))
|
||||
#define IRC_COLOR_MESSAGE_QUIT weechat_color(weechat_config_string(irc_config_color_message_quit))
|
||||
#define IRC_COLOR_REASON_QUIT weechat_color(weechat_config_string(irc_config_color_reason_quit))
|
||||
#define IRC_COLOR_TOPIC_CURRENT weechat_color(weechat_config_string(irc_config_color_topic_current))
|
||||
#define IRC_COLOR_TOPIC_OLD weechat_color(weechat_config_string(irc_config_color_topic_old))
|
||||
#define IRC_COLOR_TOPIC_NEW weechat_color(weechat_config_string(irc_config_color_topic_new))
|
||||
#define IRC_COLOR_INPUT_NICK weechat_color(weechat_config_string(irc_config_color_input_nick))
|
||||
|
@ -125,6 +125,7 @@ struct t_config_option *irc_config_color_mirc_remap;
|
||||
struct t_config_option *irc_config_color_nick_prefixes;
|
||||
struct t_config_option *irc_config_color_notice;
|
||||
struct t_config_option *irc_config_color_reason_quit;
|
||||
struct t_config_option *irc_config_color_topic_current;
|
||||
struct t_config_option *irc_config_color_topic_new;
|
||||
struct t_config_option *irc_config_color_topic_old;
|
||||
|
||||
@ -2907,6 +2908,12 @@ irc_config_init ()
|
||||
N_("color for reason in part/quit messages"),
|
||||
NULL, -1, 0, "default", NULL, 0, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL);
|
||||
irc_config_color_topic_current = weechat_config_new_option (
|
||||
irc_config_file, ptr_section,
|
||||
"topic_current", "color",
|
||||
N_("color for current channel topic (when joining or using /topic)"),
|
||||
NULL, -1, 0, "default", NULL, 0, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL);
|
||||
irc_config_color_topic_new = weechat_config_new_option (
|
||||
irc_config_file, ptr_section,
|
||||
"topic_new", "color",
|
||||
|
@ -168,6 +168,7 @@ extern struct t_config_option *irc_config_color_mirc_remap;
|
||||
extern struct t_config_option *irc_config_color_nick_prefixes;
|
||||
extern struct t_config_option *irc_config_color_notice;
|
||||
extern struct t_config_option *irc_config_color_reason_quit;
|
||||
extern struct t_config_option *irc_config_color_topic_current;
|
||||
extern struct t_config_option *irc_config_color_topic_new;
|
||||
extern struct t_config_option *irc_config_color_topic_old;
|
||||
|
||||
|
@ -3475,11 +3475,12 @@ IRC_PROTOCOL_CALLBACK(332)
|
||||
server, NULL, command, NULL, ptr_buffer),
|
||||
date,
|
||||
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
|
||||
_("%sTopic for %s%s%s is \"%s%s\""),
|
||||
_("%sTopic for %s%s%s is \"%s%s%s\""),
|
||||
weechat_prefix ("network"),
|
||||
IRC_COLOR_CHAT_CHANNEL,
|
||||
argv[3],
|
||||
IRC_COLOR_RESET,
|
||||
IRC_COLOR_TOPIC_CURRENT,
|
||||
(topic_color) ? topic_color : ((pos_topic) ? pos_topic : ""),
|
||||
IRC_COLOR_RESET);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user