From 8136aa749a76e4fbb5b7e3cc34c878733647b8e9 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 17 Mar 2023 18:03:07 +0100 Subject: util: Add compat for prosody module name change to C sources --- util-src/time.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'util-src/time.c') diff --git a/util-src/time.c b/util-src/time.c index afef3df5..e5e72a09 100644 --- a/util-src/time.c +++ b/util-src/time.c @@ -23,7 +23,7 @@ static int lc_time_monotonic(lua_State *L) { return 1; } -int luaopen_util_time(lua_State *L) { +int luaopen_prosody_util_time(lua_State *L) { lua_createtable(L, 0, 2); { lua_pushcfunction(L, lc_time_realtime); @@ -33,3 +33,6 @@ int luaopen_util_time(lua_State *L) { } return 1; } +int luaopen_util_time(lua_State *L) { + return luaopen_prosody_util_time(L); +} -- cgit v1.2.3