degesch: Lua: actually allow filtering out input

This commit is contained in:
Přemysl Eric Janouch 2016-01-09 05:05:46 +01:00
parent 53e72dd12d
commit faa0c989f8

View File

@ -7649,7 +7649,11 @@ lua_plugin_handle_string_filter_result (struct lua_plugin *self,
{
lua_State *L = self->L;
if (lua_isnil (L, -1))
{
free (*original);
*original = NULL;
return true;
}
if (!lua_isstring (L, -1))
FAIL ("must return either a string or nil");