diff tools/migration/migrator/jabberd14.lua @ 7881:4e3067272fae

tools/migration/migrator/*: Remove use of module()
author Kim Alvefur <zash@zash.se>
date Thu, 02 Feb 2017 20:49:09 +0100
parents 8350eaa3f3f3
children 879a6a33c21b
line wrap: on
line diff
--- a/tools/migration/migrator/jabberd14.lua	Thu Feb 02 20:11:25 2017 +0100
+++ b/tools/migration/migrator/jabberd14.lua	Thu Feb 02 20:49:09 2017 +0100
@@ -9,7 +9,6 @@
 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 @@
 	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 @@
 	end
 end
 
-return _M;
+return {
+	reader = reader;
+};