# HG changeset patch # User Kim Alvefur # Date 1343504196 -7200 # Node ID 656ce68c478137a76d056dcbb459b8fbf470fdd6 # Parent 242c62ff8e773aa31808927e318b13ae4676ff04 mod_storage_internal: Add method for removing all data belonging to a user diff -r 242c62ff8e77 -r 656ce68c4781 plugins/mod_storage_internal.lua --- 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);