diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-03 20:50:58 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:13:18 +0100 |
commit | 347c3f321466af6a7e057701693e6547b7d47d95 (patch) | |
tree | 2c705c5b038638d96690703c14c01d02ea55f576 /src/core/hook/wee-hook-hdata.c | |
parent | db8d2d43f0d89538169ce9c9481a97c12ef4411e (diff) | |
download | weechat-347c3f321466af6a7e057701693e6547b7d47d95.zip |
core: move function hook_get_priority_and_name to wee-string.c (issue #1872)
Diffstat (limited to 'src/core/hook/wee-hook-hdata.c')
-rw-r--r-- | src/core/hook/wee-hook-hdata.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hook/wee-hook-hdata.c b/src/core/hook/wee-hook-hdata.c index 118d5edb3..6fefbcd54 100644 --- a/src/core/hook/wee-hook-hdata.c +++ b/src/core/hook/wee-hook-hdata.c @@ -32,6 +32,7 @@ #include "../wee-hook.h" #include "../wee-infolist.h" #include "../wee-log.h" +#include "../wee-string.h" /* @@ -77,7 +78,8 @@ hook_hdata (struct t_weechat_plugin *plugin, const char *hdata_name, return NULL; } - hook_get_priority_and_name (hdata_name, &priority, &ptr_hdata_name); + string_get_priority_and_name (hdata_name, &priority, &ptr_hdata_name, + HOOK_PRIORITY_DEFAULT); hook_init_data (new_hook, plugin, HOOK_TYPE_HDATA, priority, callback_pointer, callback_data); |