mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 18:53:12 +02:00
core: use type "enum" in options
This commit is contained in:
@@ -375,7 +375,7 @@ trigger_config_create_trigger_option (const char *trigger_name, int index_option
|
||||
case TRIGGER_OPTION_HOOK:
|
||||
ptr_option = weechat_config_new_option (
|
||||
trigger_config_file, trigger_config_section_trigger,
|
||||
option_name, "integer",
|
||||
option_name, "enum",
|
||||
N_("type of hook used"),
|
||||
trigger_hook_option_values,
|
||||
0, 0, value, NULL, 0,
|
||||
@@ -440,7 +440,7 @@ trigger_config_create_trigger_option (const char *trigger_name, int index_option
|
||||
case TRIGGER_OPTION_RETURN_CODE:
|
||||
ptr_option = weechat_config_new_option (
|
||||
trigger_config_file, trigger_config_section_trigger,
|
||||
option_name, "integer",
|
||||
option_name, "enum",
|
||||
N_("return code for hook callback (see plugin API reference to "
|
||||
"know where ok_eat/error can be used efficiently)"),
|
||||
"ok|ok_eat|error", 0, 0, value, NULL, 0,
|
||||
@@ -449,7 +449,7 @@ trigger_config_create_trigger_option (const char *trigger_name, int index_option
|
||||
case TRIGGER_OPTION_POST_ACTION:
|
||||
ptr_option = weechat_config_new_option (
|
||||
trigger_config_file, trigger_config_section_trigger,
|
||||
option_name, "integer",
|
||||
option_name, "enum",
|
||||
N_("action to take on the trigger after execution"),
|
||||
"none|disable|delete", 0, 0, value, NULL, 0,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user