degesch: Lua: actually allow filtering out input
This commit is contained in:
parent
53e72dd12d
commit
faa0c989f8
|
@ -7649,7 +7649,11 @@ lua_plugin_handle_string_filter_result (struct lua_plugin *self,
|
||||||
{
|
{
|
||||||
lua_State *L = self->L;
|
lua_State *L = self->L;
|
||||||
if (lua_isnil (L, -1))
|
if (lua_isnil (L, -1))
|
||||||
|
{
|
||||||
|
free (*original);
|
||||||
|
*original = NULL;
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
if (!lua_isstring (L, -1))
|
if (!lua_isstring (L, -1))
|
||||||
FAIL ("must return either a string or nil");
|
FAIL ("must return either a string or nil");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue