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

core: use type "enum" in options

This commit is contained in:
Sébastien Helleu
2023-07-06 21:16:56 +02:00
parent 66cb9f6ea2
commit 481e8f197d
37 changed files with 215 additions and 215 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ trigger_buffer_match_filters (struct t_trigger *trigger)
{
/* check if the hook matches the filter */
if (weechat_strcasecmp (
trigger_hook_type_string[weechat_config_integer (trigger->options[TRIGGER_OPTION_HOOK])],
trigger_hook_type_string[weechat_config_enum (trigger->options[TRIGGER_OPTION_HOOK])],
trigger_buffer_filters[i] + 1) == 0)
{
return 1;
@@ -355,7 +355,7 @@ trigger_buffer_display_trigger (struct t_trigger *trigger,
"--> %s%lu\t%s: %s%s %s(%s%s%s)%s",
weechat_color (weechat_config_string (trigger_config_color_identifier)),
context->id,
trigger_hook_type_string[weechat_config_integer (trigger->options[TRIGGER_OPTION_HOOK])],
trigger_hook_type_string[weechat_config_enum (trigger->options[TRIGGER_OPTION_HOOK])],
weechat_color ("chat_status_enabled"),
trigger->name,
weechat_color ("chat_delimiters"),