aboutsummaryrefslogtreecommitdiffstats
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
commit8f1c8652c5e4ede8365ac182b1036e89e1eddcfc (patch)
tree7dfc363e6ecf609a3504e70e9d87d2da74c8f49f
parent289f3b4a28c07ad7fd3d387bf1daaab9e0f9fa55 (diff)
downloadprosody-8f1c8652c5e4ede8365ac182b1036e89e1eddcfc.tar.gz
prosody-8f1c8652c5e4ede8365ac182b1036e89e1eddcfc.zip
moduleapi: Make module:open_store() open a store named after the calling module by default
-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;