Software /
code /
prosody
Comparison
core/storagemanager.lua @ 7327:d62f0471470f
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Apr 2016 17:13:12 +0200 |
parent | 7245:210d8329dc70 |
parent | 7325:7baf1b14defb |
child | 7647:e9d7a409e236 |
comparison
equal
deleted
inserted
replaced
7324:7e6409462f79 | 7327:d62f0471470f |
---|---|
194 return open(host, datastore):set(username, data); | 194 return open(host, datastore):set(username, data); |
195 end | 195 end |
196 function datamanager.users(host, datastore, typ) | 196 function datamanager.users(host, datastore, typ) |
197 local driver = open(host, datastore, typ); | 197 local driver = open(host, datastore, typ); |
198 if not driver.users then | 198 if not driver.users then |
199 return function() log("warn", "storage driver %s does not support listing users", driver.name) end | 199 return function() log("warn", "Storage driver %s does not support listing users", driver.name) end |
200 end | 200 end |
201 return driver:users(); | 201 return driver:users(); |
202 end | 202 end |
203 function datamanager.stores(username, host, typ) | 203 function datamanager.stores(username, host, typ) |
204 return get_driver(host):stores(username, typ); | 204 return get_driver(host):stores(username, typ); |