aboutsummaryrefslogtreecommitdiffstats
path: root/tools/migration/migrator/jabberd14.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-04 01:08:27 +0100
committerKim Alvefur <zash@zash.se>2017-02-04 01:08:27 +0100
commit314ce335b9a3f23224237f829c9b166eeb345187 (patch)
tree300927642fc0f857d9ea96ab4b1e2bc2d4c20950 /tools/migration/migrator/jabberd14.lua
parentc534c1414eec471209c54a917152593da3198c90 (diff)
parent0f6de0b8f9c41090298ca0b3f998832971ff51b2 (diff)
downloadprosody-314ce335b9a3f23224237f829c9b166eeb345187.tar.gz
prosody-314ce335b9a3f23224237f829c9b166eeb345187.zip
Merge 0.10->trunk
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;
+};