X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Ftimer.lua;h=3713625db3d6cbcb3d2c78fe5ff79c95aff13b79;hb=59224f73ca26a00292f127e081af3cf47f57ae1f;hp=0e10e144e9746ed0f974be58605fb1fb43dc19ae;hpb=fcbcf2bab2c66ab3045d5de6d21ee56b164acb92;p=prosody.git diff --git a/util/timer.lua b/util/timer.lua index 0e10e144..3713625d 100644 --- a/util/timer.lua +++ b/util/timer.lua @@ -17,7 +17,7 @@ local type = type; local data = {}; local new_data = {}; -module "timer" +local _ENV = nil; local _add_task; if not server.event then @@ -78,6 +78,6 @@ else end end -add_task = _add_task; - -return _M; +return { + add_task = _add_task; +};