util: Add compat for prosody module name change to C sources

This commit is contained in:
Kim Alvefur 2023-03-17 18:03:07 +01:00
parent 43531740f9
commit 8136aa749a
14 changed files with 64 additions and 14 deletions

View file

@ -60,7 +60,7 @@ static int Lmove (lua_State *L) {
return 1;
}
int luaopen_util_table(lua_State *L) {
int luaopen_prosody_util_table(lua_State *L) {
luaL_checkversion(L);
lua_createtable(L, 0, 2);
lua_pushcfunction(L, Lcreate_table);
@ -71,3 +71,7 @@ int luaopen_util_table(lua_State *L) {
lua_setfield(L, -2, "move");
return 1;
}
int luaopen_util_table(lua_State *L) {
return luaopen_prosody_util_table(L);
}