m-lua-scripting: Return the event in the push_event API

This commit is contained in:
Ashok Sidipotu
2022-09-16 10:59:33 +05:30
committed by Julian Bouzas
parent 68eaede3e4
commit 40a1c3b948

View File

@@ -1792,7 +1792,7 @@ event_dispatcher_push_event (lua_State *L)
WpEvent *event = wp_event_new (type, priority, properties, source, subject);
wp_event_dispatcher_push_event (dispatcher, wp_event_ref (event));
wplua_pushboxed (L, WP_TYPE_EVENT, event);
return 0;
return 1;
}
static const luaL_Reg event_dispatcher_funcs[] = {