diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_task.c | 3 |
1 files changed, 1 insertions, 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; } |