summaryrefslogtreecommitdiff
path: root/src/core/hook/wee-hook-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hook/wee-hook-config.c')
-rw-r--r--src/core/hook/wee-hook-config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hook/wee-hook-config.c b/src/core/hook/wee-hook-config.c
index 8f510c792..cacf8f0d5 100644
--- a/src/core/hook/wee-hook-config.c
+++ b/src/core/hook/wee-hook-config.c
@@ -75,7 +75,8 @@ hook_config (struct t_weechat_plugin *plugin, const char *option,
return NULL;
}
- hook_get_priority_and_name (option, &priority, &ptr_option);
+ string_get_priority_and_name (option, &priority, &ptr_option,
+ HOOK_PRIORITY_DEFAULT);
hook_init_data (new_hook, plugin, HOOK_TYPE_CONFIG, priority,
callback_pointer, callback_data);