aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-09-17 05:42:10 +0200
committerKim Alvefur <zash@zash.se>2012-09-17 05:42:10 +0200
commit07bb8a42ce660684bbe4742aeefd5ea92092a37e (patch)
treed7fb672e714c45dae2129e01afc73e33570c4c40 /core
parent136674425b54b191ecef0006d8460f84a4a67f35 (diff)
downloadprosody-07bb8a42ce660684bbe4742aeefd5ea92092a37e.tar.gz
prosody-07bb8a42ce660684bbe4742aeefd5ea92092a37e.zip
storagemanager, datamanager, mod_storage_{internal,sql}: Replace list_stores() with an iterator version
Diffstat (limited to 'core')
-rw-r--r--core/storagemanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index a9759b6a..29cad2ff 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -119,8 +119,8 @@ end
function datamanager.store(username, host, datastore, data)
return open(host, datastore):set(username, data);
end
-function datamanager.list_stores(username, host)
- return get_driver(host):list_stores(username);
+function datamanager.stores(username, host, typ)
+ return get_driver(host):stores(username, typ);
end
function datamanager.purge(username, host)
return purge(username);