Software /
code /
prosody
Comparison
core/moduleapi.lua @ 6422:6d4d87a89026
core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Sep 2014 00:23:33 +0200 |
parent | 6415:010b141e91ed |
child | 6423:1c78f10f05d0 |
child | 6556:74253c7beb9c |
comparison
equal
deleted
inserted
replaced
6421:c3011ab945b8 | 6422:6d4d87a89026 |
---|---|
368 | 368 |
369 function api:open_store(name, type) | 369 function api:open_store(name, type) |
370 return require"core.storagemanager".open(self.host, name or self.name, type); | 370 return require"core.storagemanager".open(self.host, name or self.name, type); |
371 end | 371 end |
372 | 372 |
373 return function (mm) | 373 function api.init(mm) |
374 modulemanager = mm; | 374 modulemanager = mm; |
375 return api; | 375 return api; |
376 end | 376 end |
377 | |
378 return api; |