tag: export clients as simple table
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
315b8e5c30
commit
07b82b1825
5
tag.c
5
tag.c
|
@ -310,12 +310,11 @@ luaA_tag_clients(lua_State *L)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
client_array_t *clients = &(*tag)->clients;
|
client_array_t *clients = &(*tag)->clients;
|
||||||
luaA_otable_new(L);
|
lua_newtable(L);
|
||||||
for(i = 0; i < clients->len; i++)
|
for(i = 0; i < clients->len; i++)
|
||||||
{
|
{
|
||||||
luaA_client_userdata_new(L, clients->tab[i]);
|
luaA_client_userdata_new(L, clients->tab[i]);
|
||||||
luaA_client_userdata_new(L, clients->tab[i]);
|
lua_rawseti(L, -2, i + 1);
|
||||||
lua_rawset(L, -3);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue