diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-22 17:09:15 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-22 17:09:15 +0000 |
commit | dce90e99c7f42de3991824fb2a7a856159088f68 (patch) | |
tree | 022164d89e1eefbb46cf939885079df1e48f4fcf /src/lua | |
parent | 78600f0726e8a4e29e3ba9eaf6aca376d864ee57 (diff) | |
download | rspamd-dce90e99c7f42de3991824fb2a7a856159088f68.tar.gz rspamd-dce90e99c7f42de3991824fb2a7a856159088f68.zip |
Fix broken headers and task:has_flag
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 22631234e..e4689c483 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1948,10 +1948,11 @@ lua_task_has_flag (lua_State *L) if (!found) { msg_warn_task ("unknown flag requested: %s", flag); + lua_pushboolean (L, 0); } } - return 0; + return 1; } static gint |