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
commit04c82ce1bc86ace025c55e7f7a63044edfc237df (patch)
tree5112717a057722f10d70b13097004eb77572fe54 /tools/migration/migrator/jabberd14.lua
parent429bf04ce448523a3f4bad4a3c60afd420a69cdf (diff)
downloadprosody-04c82ce1bc86ace025c55e7f7a63044edfc237df.tar.gz
prosody-04c82ce1bc86ace025c55e7f7a63044edfc237df.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;
+};