tag: export clients as simple table

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-13 22:06:20 +02:00
parent 315b8e5c30
commit 07b82b1825
1 changed files with 2 additions and 3 deletions

5
tag.c
View File

@ -310,12 +310,11 @@ luaA_tag_clients(lua_State *L)
else
{
client_array_t *clients = &(*tag)->clients;
luaA_otable_new(L);
lua_newtable(L);
for(i = 0; i < clients->len; i++)
{
luaA_client_userdata_new(L, clients->tab[i]);
luaA_client_userdata_new(L, clients->tab[i]);
lua_rawset(L, -3);
lua_rawseti(L, -2, i + 1);
}
}