diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-hook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index 65f36de39..d8c2413a1 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -405,8 +405,8 @@ hook_command_exec (struct t_gui_buffer *buffer, int any_plugin, if (!ptr_hook->deleted && !ptr_hook->running && ((!any_plugin || HOOK_COMMAND(ptr_hook, level) == 0)) - && (string_strcasecmp (argv[0] + 1, - HOOK_COMMAND(ptr_hook, command)) == 0)) + && ((argv[0][0] == '/') && (string_strcasecmp (argv[0] + 1, + HOOK_COMMAND(ptr_hook, command)) == 0))) { if (ptr_hook->plugin == plugin) { |