mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
util.*: Remove use of module() function, make all module functions local and return them in a table at the end
This commit is contained in:
parent
b49513cdeb
commit
eaa823a597
35 changed files with 435 additions and 302 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue