summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger-command.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-05-01 20:16:59 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-05-01 20:16:59 +0200
commit385b1d0133dccd27c5b091232ff0ce975ba6c7a3 (patch)
tree4dba4dfb8fc4f0d8a9ced6a55431d61667cc9f57 /src/plugins/trigger/trigger-command.c
parentb8f9b83500ce3d9acdb78d3cb6439734b1d01898 (diff)
downloadweechat-385b1d0133dccd27c5b091232ff0ce975ba6c7a3.zip
core: remove options trigger.color.trigger and trigger.color.trigger_disabled (issue #1820)
These options are used instead: - weechat.color.chat_status_disabled - weechat.color.chat_status_enabled
Diffstat (limited to 'src/plugins/trigger/trigger-command.c')
-rw-r--r--src/plugins/trigger/trigger-command.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c
index 2440446f1..9b1adb753 100644
--- a/src/plugins/trigger/trigger-command.c
+++ b/src/plugins/trigger/trigger-command.c
@@ -72,9 +72,7 @@ trigger_command_display_trigger_internal (const char *name,
weechat_printf_date_tags (
NULL, 0, "no_trigger",
" %s%s%s: %s%s%s%s%s%s%s",
- (enabled) ?
- weechat_color (weechat_config_string (trigger_config_color_trigger)) :
- weechat_color (weechat_config_string (trigger_config_color_trigger_disabled)),
+ weechat_color ((enabled) ? "chat_status_enabled" : "chat_status_disabled"),
name,
weechat_color ("reset"),
hook,
@@ -217,9 +215,7 @@ trigger_command_display_trigger_internal (const char *name,
weechat_printf_date_tags (
NULL, 0, "no_trigger",
" %s%s%s: %s%s%s%s%s%s%s%s%s%s%s%s%s",
- (enabled) ?
- weechat_color (weechat_config_string (trigger_config_color_trigger)) :
- weechat_color (weechat_config_string (trigger_config_color_trigger_disabled)),
+ weechat_color ((enabled) ? "chat_status_enabled": "chat_status_disabled"),
name,
weechat_color ("reset"),
hook,