diff options
author | Kim Alvefur <zash@zash.se> | 2013-04-19 14:42:32 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-04-19 14:42:32 +0200 |
commit | 13f1d8dcc67c60c2927f3b2923f31f4086216d79 (patch) | |
tree | 7dfc363e6ecf609a3504e70e9d87d2da74c8f49f | |
parent | 1cf3761516d65ee399a027aebf7b94756c6a2e4d (diff) | |
download | prosody-13f1d8dcc67c60c2927f3b2923f31f4086216d79.tar.gz prosody-13f1d8dcc67c60c2927f3b2923f31f4086216d79.zip |
moduleapi: Make module:open_store() open a store named after the calling module by default
-rw-r--r-- | core/moduleapi.lua | 2 |
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; |