From: Vsevolod Stakhov Date: Thu, 25 Feb 2016 15:13:07 +0000 (+0000) Subject: Fix task:has_flag method X-Git-Tag: 1.2.0~171 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=760bf12f14698d3c71a08814e106a32663141b06;p=rspamd.git Fix task:has_flag method --- 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; }