1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

Fixed bug with use of wrong command hooked (bug #22974)

This commit is contained in:
Sebastien Helleu
2008-04-19 01:00:02 +02:00
parent 1486429cf1
commit 49a9e6f79a
+2 -2
View File
@@ -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)
{