From 760bf12f14698d3c71a08814e106a32663141b06 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 25 Feb 2016 15:13:07 +0000 Subject: [PATCH] Fix task:has_flag method --- src/lua/lua_task.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 3403adbf6..b177f168c 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2221,14 +2221,13 @@ lua_task_has_flag (lua_State *L) if (!found) { msg_warn_task ("unknown flag requested: %s", flag); + lua_pushboolean (L, 0); } } else { return luaL_error (L, "invalid arguments"); } - lua_pushboolean (L, found); - return 1; } -- 2.39.5