From: Vsevolod Stakhov Date: Tue, 23 Feb 2016 17:47:17 +0000 (+0000) Subject: Fix has_symbol method X-Git-Tag: 1.2.0~180 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ceafdab3aedfd9069d1d45bac6d247f620382e74;p=rspamd.git Fix has_symbol method --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index dde882104..e73de893d 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1937,6 +1937,8 @@ lua_task_has_symbol (lua_State *L) if (mres) { found = g_hash_table_lookup (mres->symbols, symbol) != NULL; } + + lua_pushboolean (L, found); } else { luaL_error (L, "invalid arguments");