Software /
code /
prosody
Changeset
5498:2a67235e1d4d
moduleapi: Make module:open_store() open a store named after the calling module by default
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 19 Apr 2013 14:42:32 +0200 |
parents | 5496:7a0b81b5ca71 |
children | 5499:063d1f706ba7 5500:eeea0eb2602a |
files | core/moduleapi.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/moduleapi.lua Fri Apr 19 13:29:47 2013 +0100 +++ b/core/moduleapi.lua Fri Apr 19 14:42:32 2013 +0200 @@ -338,7 +338,7 @@ 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;