diff options
author | Kim Alvefur <zash@zash.se> | 2015-02-21 10:36:37 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-02-21 10:36:37 +0100 |
commit | eaa823a5971bfd2e9cb38dd8f30fefee2da95c2e (patch) | |
tree | f7609b77dfead0a8d6994597c5799196676080bd /util/timer.lua | |
parent | b49513cdeb2bb123625fb87f53a04d42b7eb6fb2 (diff) | |
download | prosody-eaa823a5971bfd2e9cb38dd8f30fefee2da95c2e.tar.gz prosody-eaa823a5971bfd2e9cb38dd8f30fefee2da95c2e.zip |
util.*: Remove use of module() function, make all module functions local and return them in a table at the end
Diffstat (limited to 'util/timer.lua')
-rw-r--r-- | util/timer.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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; +}; |