aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-13 21:37:59 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-13 21:37:59 +0000
commit68dc1090ae620e0bd2f24401ebfaa97ff9a7291a (patch)
treec69509a1baa82edc9fde998d3ea6b44e0f91f479 /src/lua
parentadff55155bdc85fc69ca96d3222703b3d379929b (diff)
downloadrspamd-68dc1090ae620e0bd2f24401ebfaa97ff9a7291a.tar.gz
rspamd-68dc1090ae620e0bd2f24401ebfaa97ff9a7291a.zip
[Minor] Lua_text: Set class properly
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_text.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_text.c b/src/lua/lua_text.c
index f24416d29..5c01a239b 100644
--- a/src/lua/lua_text.c
+++ b/src/lua/lua_text.c
@@ -477,6 +477,7 @@ rspamd_lua_text_push_line (lua_State *L,
struct rspamd_lua_text *ntext;
ntext = lua_newuserdata (L, sizeof (*ntext));
+ rspamd_lua_setclass (L, "rspamd{text}", -1);
ntext->start = start;
ntext->len = len;
ntext->flags = 0; /* Not own as it must be owned by a top object */