diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-27 13:31:36 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-27 13:31:36 +0100 |
commit | 7d7fe81501175d67735bf8786bd3e2ae10adaed7 (patch) | |
tree | d82bb932ec4be33c36d29389089167f05a288f2c /src | |
parent | 56482018b44df03b50b01e6872472d94e231e14e (diff) | |
download | rspamd-7d7fe81501175d67735bf8786bd3e2ae10adaed7.tar.gz rspamd-7d7fe81501175d67735bf8786bd3e2ae10adaed7.zip |
[Feature] Pass settings id to lua script from log helper
Diffstat (limited to 'src')
-rw-r--r-- | src/log_helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log_helper.c b/src/log_helper.c index d46122b69..d01e102c6 100644 --- a/src/log_helper.c +++ b/src/log_helper.c @@ -116,8 +116,9 @@ rspamd_log_helper_read (gint fd, short what, gpointer ud) pcfg = lua_newuserdata (ctx->L, sizeof (*pcfg)); *pcfg = ctx->cfg; rspamd_lua_setclass (ctx->L, "rspamd{config}", -1); + lua_pushnumber (ctx->L, sm->settings_id); - if (lua_pcall (ctx->L, 4, 0, 0) != 0) { + if (lua_pcall (ctx->L, 5, 0, 0) != 0) { msg_err ("error executing log handler code: %s", lua_tostring (ctx->L, -1)); lua_pop (ctx->L, 1); |