Software /
code /
prosody
Comparison
core/moduleapi.lua @ 5511:764bda4b28b8
Merge 0.9->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 23 Apr 2013 15:14:47 +0100 |
parent | 5498:2a67235e1d4d |
child | 5526:d54011a23b20 |
comparison
equal
deleted
inserted
replaced
5497:b42781a96174 | 5511:764bda4b28b8 |
---|---|
336 path = config.resolve_relative_path(self:get_directory(), path); | 336 path = config.resolve_relative_path(self:get_directory(), path); |
337 return io.open(path, mode); | 337 return io.open(path, mode); |
338 end | 338 end |
339 | 339 |
340 function api:open_store(name, type) | 340 function api:open_store(name, type) |
341 return storagemanager.open(self.host, name, type); | 341 return storagemanager.open(self.host, name or self.name, type); |
342 end | 342 end |
343 | 343 |
344 return api; | 344 return api; |