aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-22 17:09:15 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-22 17:09:15 +0000
commitdce90e99c7f42de3991824fb2a7a856159088f68 (patch)
tree022164d89e1eefbb46cf939885079df1e48f4fcf /src/lua
parent78600f0726e8a4e29e3ba9eaf6aca376d864ee57 (diff)
downloadrspamd-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.c3
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