diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-27 21:45:49 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:24 +0100 |
commit | fbeab26a3510680a5ad1753bf554b70b9a78a336 (patch) | |
tree | 9930db9909e86ae01c20ab06aba7b803018a3652 /src/core/hook/wee-hook-command.c | |
parent | c07cf691adb4740759e9fd128a2f6702c912d70f (diff) | |
download | weechat-fbeab26a3510680a5ad1753bf554b70b9a78a336.zip |
core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)
Diffstat (limited to 'src/core/hook/wee-hook-command.c')
-rw-r--r-- | src/core/hook/wee-hook-command.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hook/wee-hook-command.c b/src/core/hook/wee-hook-command.c index 2cf2d8349..435b0d702 100644 --- a/src/core/hook/wee-hook-command.c +++ b/src/core/hook/wee-hook-command.c @@ -69,7 +69,7 @@ hook_command_search (struct t_weechat_plugin *plugin, const char *command) { if (!ptr_hook->deleted && (ptr_hook->plugin == plugin) - && (string_strcmp (HOOK_COMMAND(ptr_hook, command), command) == 0)) + && (strcmp (HOOK_COMMAND(ptr_hook, command), command) == 0)) return ptr_hook; } @@ -409,8 +409,7 @@ hook_command_exec (struct t_gui_buffer *buffer, int any_plugin, if (!ptr_hook->deleted) { - if (string_strcmp (ptr_command_name, - HOOK_COMMAND(ptr_hook, command)) == 0) + if (strcmp (ptr_command_name, HOOK_COMMAND(ptr_hook, command)) == 0) { if (ptr_hook->plugin == plugin) { |