aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-04-19 14:42:32 +0200
committerKim Alvefur <zash@zash.se>2013-04-19 14:42:32 +0200
commit10e527173b98b7a479df576145e80afb6f3da6fb (patch)
tree7dfc363e6ecf609a3504e70e9d87d2da74c8f49f /core/moduleapi.lua
parentfb13c42bfd1c42d243d93c00d1a3bfd96f2177d7 (diff)
downloadprosody-10e527173b98b7a479df576145e80afb6f3da6fb.tar.gz
prosody-10e527173b98b7a479df576145e80afb6f3da6fb.zip
moduleapi: Make module:open_store() open a store named after the calling module by default
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index a8e6881e..30360f73 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -338,7 +338,7 @@ function api:load_resource(path, mode)
end
function api:open_store(name, type)
- return storagemanager.open(self.host, name, type);
+ return storagemanager.open(self.host, name or self.name, type);
end
return api;