# HG changeset patch # User Kim Alvefur # Date 1343503499 -7200 # Node ID c64b5081bfa8d4543ccbe44f71d56ab7ea8a1c5d # Parent c40ea227f8affdb03ec41be321b73dcaefaded77 mod_storage_internal: Add method for listing stores diff -r c40ea227f8af -r c64b5081bfa8 plugins/mod_storage_internal.lua --- a/plugins/mod_storage_internal.lua Sat Jul 28 21:22:42 2012 +0200 +++ b/plugins/mod_storage_internal.lua Sat Jul 28 21:24:59 2012 +0200 @@ -16,4 +16,8 @@ return datamanager.store(user, host, self.store, data); end +function driver:list_stores(username) + return datamanager.list_stores(username, host); +end + module:add_item("data-driver", driver);