summaryrefslogtreecommitdiff
path: root/src/core/hook/wee-hook-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hook/wee-hook-command.c')
-rw-r--r--src/core/hook/wee-hook-command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hook/wee-hook-command.c b/src/core/hook/wee-hook-command.c
index 4b7b0048a..5b1120ba5 100644
--- a/src/core/hook/wee-hook-command.c
+++ b/src/core/hook/wee-hook-command.c
@@ -308,7 +308,8 @@ hook_command (struct t_weechat_plugin *plugin, const char *command,
return NULL;
}
- hook_get_priority_and_name (command, &priority, &ptr_command);
+ string_get_priority_and_name (command, &priority, &ptr_command,
+ HOOK_PRIORITY_DEFAULT);
hook_init_data (new_hook, plugin, HOOK_TYPE_COMMAND, priority,
callback_pointer, callback_data);