From 49a9e6f79a3bce96e72b05f884d5f30d7afacb75 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 19 Apr 2008 01:00:02 +0200 Subject: Fixed bug with use of wrong command hooked (bug #22974) --- src/core/wee-hook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') 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) { -- cgit v1.2.3