Mercurial > prosody-hg
diff util-src/compat.c @ 12976:a187600ec7d6
util: Add compat for prosody module name change to C sources
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 17 Mar 2023 18:03:07 +0100 |
| parents | cfc7b2f7251e |
| children |
line wrap: on
line diff
--- a/util-src/compat.c Fri Mar 17 16:23:16 2023 +0100 +++ b/util-src/compat.c Fri Mar 17 18:03:07 2023 +0100 @@ -19,7 +19,7 @@ return lua_gettop(L); } -int luaopen_util_compat(lua_State *L) { +int luaopen_prosody_util_compat(lua_State *L) { lua_createtable(L, 0, 2); { lua_pushcfunction(L, lc_xpcall); @@ -27,3 +27,7 @@ } return 1; } + +int luaopen_util_compat(lua_State *L) { + return luaopen_prosody_util_compat(L); +}
