]> source.dussan.org Git - rspamd.git/commitdiff
Fix textpart:get_language lua function.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 18 Jul 2011 13:23:27 +0000 (17:23 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 18 Jul 2011 13:23:27 +0000 (17:23 +0400)
src/lua/lua_task.c

index f217ee0b2c6a8e0548342420b70ce65949a70b2c..a6530160f5f00a8b16b2131d1392052dd3eb34a6 100644 (file)
@@ -1337,6 +1337,7 @@ lua_textpart_get_language (lua_State * L)
                sel = languages[part->script];
                if (*sel != '\0') {
                        lua_pushstring (L, sel);
+                       return 1;
                }
        }