From 172562976cd1ef9395f8f6913d49f02d3ba3dba2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 16 Sep 2012 02:18:07 +0200 Subject: storagemanager: Add purge() for purging user data from all backends in use --- core/usermanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/usermanager.lua') diff --git a/core/usermanager.lua b/core/usermanager.lua index 2ca0aef1..0ed61f23 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -93,7 +93,7 @@ function delete_user(username, host) local ok, err = hosts[host].users.delete_user(username); if not ok then return nil, err; end prosody.events.fire_event("user-deleted", { username = username, host = host }); - return storagemanager.get_driver(host):purge(username); + return storagemanager.purge(username, host); end function get_sasl_handler(host, session) -- cgit v1.2.3