Software /
code /
prosody
Diff
core/moduleapi.lua @ 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 |
parent | 5496:7a0b81b5ca71 |
child | 5526:d54011a23b20 |
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;