From: Vsevolod Stakhov Date: Mon, 18 Jul 2011 13:23:27 +0000 (+0400) Subject: Fix textpart:get_language lua function. X-Git-Tag: 0.4.0~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=80422de224dae1d68b3ff9e9c3c6abf780367e36;p=rspamd.git Fix textpart:get_language lua function. --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index f217ee0b2..a6530160f 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1337,6 +1337,7 @@ lua_textpart_get_language (lua_State * L) sel = languages[part->script]; if (*sel != '\0') { lua_pushstring (L, sel); + return 1; } }