diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-25 15:13:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-25 15:13:07 +0000 |
commit | 760bf12f14698d3c71a08814e106a32663141b06 (patch) | |
tree | 0d72684c06369d1aca8f75dfa5f78318448fecf5 /src | |
parent | 7b04b58f6942d8b1d22de5fdae166359c702c628 (diff) | |
download | rspamd-760bf12f14698d3c71a08814e106a32663141b06.tar.gz rspamd-760bf12f14698d3c71a08814e106a32663141b06.zip |
Fix task:has_flag method
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; } |