summaryrefslogtreecommitdiff
path: root/src/core/wee-hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/wee-hook.c')
-rw-r--r--src/core/wee-hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index ebe656c39..033eddcf1 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -352,7 +352,7 @@ hook_command_exec (void *buffer, char *string, int only_builtin)
hook_exec_recursion--;
if (hook_exec_recursion == 0)
hook_remove_deleted ();
- if (rc == PLUGIN_RC_FAILED)
+ if (rc == WEECHAT_RC_ERROR)
return 0;
else
return 1;