aboutsummaryrefslogtreecommitdiffstats
path: root/tools/migration/migrator/jabberd14.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-02 20:49:09 +0100
committerKim Alvefur <zash@zash.se>2017-02-02 20:49:09 +0100
commit0a385a3953bff3088fb3d4d53cf6a5a9b618f006 (patch)
tree5112717a057722f10d70b13097004eb77572fe54 /tools/migration/migrator/jabberd14.lua
parentf0918f4e1b59ca6f360a4b1ae2974a9c339e71a1 (diff)
downloadprosody-0a385a3953bff3088fb3d4d53cf6a5a9b618f006.tar.gz
prosody-0a385a3953bff3088fb3d4d53cf6a5a9b618f006.zip
tools/migration/migrator/*: Remove use of module()
Diffstat (limited to 'tools/migration/migrator/jabberd14.lua')
-rw-r--r--tools/migration/migrator/jabberd14.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/migration/migrator/jabberd14.lua b/tools/migration/migrator/jabberd14.lua
index 2f0b0b78..a4eef3f7 100644
--- a/tools/migration/migrator/jabberd14.lua
+++ b/tools/migration/migrator/jabberd14.lua
@@ -9,7 +9,6 @@ local ipairs = ipairs;
local coroutine = coroutine;
local print = print;
-module "jabberd14"
local function is_dir(path) return lfs.attributes(path, "mode") == "directory"; end
local function is_file(path) return lfs.attributes(path, "mode") == "file"; end
@@ -128,7 +127,7 @@ local function loop_over_hosts(path, cb)
end
end
-function reader(input)
+local function reader(input)
local path = clean_path(assert(input.path, "no input.path specified"));
assert(is_dir(path), "input.path is not a directory");
@@ -139,4 +138,6 @@ function reader(input)
end
end
-return _M;
+return {
+ reader = reader;
+};