mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
util-src/*.c: Don't create globals when loaded
This commit is contained in:
parent
a685dfb89e
commit
c57e98cd7d
6 changed files with 11 additions and 11 deletions
|
@ -112,6 +112,7 @@ int luaopen_util_net(lua_State* L)
|
|||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
luaL_register(L, "net", exports);
|
||||
lua_newtable(L);
|
||||
luaL_register(L, NULL, exports);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue