summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-04-19 01:00:02 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-04-19 01:00:02 +0200
commit49a9e6f79a3bce96e72b05f884d5f30d7afacb75 (patch)
tree9e7daa67993129043030dd8a8491d78af7752151 /src/core
parent1486429cf1dff6f45536bf07de35caf3d060672f (diff)
downloadweechat-49a9e6f79a3bce96e72b05f884d5f30d7afacb75.zip
Fixed bug with use of wrong command hooked (bug #22974)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-hook.c4
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)
{