aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-23 01:44:16 +0200
committerKim Alvefur <zash@zash.se>2014-09-23 01:44:16 +0200
commit65159ec12ff29eaf2f7f934f6ebb2ecf6a51f30e (patch)
tree1e63192849a869212df2448f814cb37c91b04fe5 /core/moduleapi.lua
parent77918edaac029ab1fe1c62ffe5a72e0ed0046065 (diff)
parentb58d3248b78bce1bc07575ab1ff2a6f30324fc28 (diff)
downloadprosody-65159ec12ff29eaf2f7f934f6ebb2ecf6a51f30e.tar.gz
prosody-65159ec12ff29eaf2f7f934f6ebb2ecf6a51f30e.zip
Merge 0.10->trunk
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 e9609ed9..754d7497 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -390,7 +390,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;