Software /
code /
prosody
Diff
util-src/time.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 |
parent | 10480:94cacf9fd0ae |
line wrap: on
line diff
--- a/util-src/time.c Fri Mar 17 16:23:16 2023 +0100 +++ b/util-src/time.c Fri Mar 17 18:03:07 2023 +0100 @@ -23,7 +23,7 @@ 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 @@ } return 1; } +int luaopen_util_time(lua_State *L) { + return luaopen_prosody_util_time(L); +}