aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-03 19:18:55 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-03 19:18:55 +0400
commit3215a8457fcedcbc400a9447d06c7f54b0af35a4 (patch)
treee7368d1c6e2bc98619a78b9551ee0116ea269875 /src/lua/lua_message.c
parentc9d98a8fc24f76d979ad479eff2fa66b31703832 (diff)
downloadrspamd-3215a8457fcedcbc400a9447d06c7f54b0af35a4.tar.gz
rspamd-3215a8457fcedcbc400a9447d06c7f54b0af35a4.zip
* Make lua api object oriented
Diffstat (limited to 'src/lua/lua_message.c')
-rw-r--r--src/lua/lua_message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_message.c b/src/lua/lua_message.c
index 60daf357b..a99fa070c 100644
--- a/src/lua/lua_message.c
+++ b/src/lua/lua_message.c
@@ -87,7 +87,7 @@ static const struct luaL_reg msglib_m[] = {
static GMimeMessage *
lua_check_message (lua_State *L)
{
- void *ud = luaL_checkudata (L, 1, "Rspamd.message");
+ void *ud = luaL_checkudata (L, 1, "rspamd{message}");
luaL_argcheck (L, ud != NULL, 1, "'message' expected");
return *((GMimeMessage **)ud);
}
@@ -166,8 +166,8 @@ lua_message_set_header (lua_State *L)
int
luaopen_message (lua_State *L)
{
- lua_newclass (L, "Rspamd.message", msglib_m);
- luaL_openlib (L, "message", msglib_m, 0);
+ lua_newclass (L, "rspamd{message}", msglib_m);
+ luaL_openlib (L, NULL, null_reg, 0);
return 1;
}