aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-23 00:23:33 +0200
committerKim Alvefur <zash@zash.se>2014-09-23 00:23:33 +0200
commitad7e3d7233cff3e34c11323ff5ec64aacb8f678c (patch)
treed2e98f022591e298964769aeed1c80a086297c8f /core/moduleapi.lua
parent8e74cf8125fdd3cac754f7cdfb4daec62a5a75ea (diff)
downloadprosody-ad7e3d7233cff3e34c11323ff5ec64aacb8f678c.tar.gz
prosody-ad7e3d7233cff3e34c11323ff5ec64aacb8f678c.zip
core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r)
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index e5f86b37..c30a8936 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -370,7 +370,9 @@ function api:open_store(name, type)
return require"core.storagemanager".open(self.host, name or self.name, type);
end
-return function (mm)
+function api.init(mm)
modulemanager = mm;
return api;
end
+
+return api;