Software /
code /
prosody
Diff
plugins/mod_storage_internal.lua @ 5039:656ce68c4781
mod_storage_internal: Add method for removing all data belonging to a user
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 28 Jul 2012 21:36:36 +0200 |
parent | 5033:c64b5081bfa8 |
child | 5121:b5a5643f8572 |
child | 5130:051d352ed03c |
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua Sat Jul 28 21:31:54 2012 +0200 +++ b/plugins/mod_storage_internal.lua Sat Jul 28 21:36:36 2012 +0200 @@ -20,4 +20,8 @@ return datamanager.list_stores(username, host); end +function driver:purge(user) + return datamanager.purge(user, host); +end + module:add_item("data-driver", driver);