Software /
code /
prosody
Changeset
3297:aa3725bbcde5
mod_register: Delete the offline store as a list, and delete the privacy store.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 24 Jun 2010 03:47:35 +0500 |
parents | 3296:5f57f2f81c02 |
children | 3298:94087ee7587b |
files | plugins/mod_register.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_register.lua Thu Jun 24 03:46:52 2010 +0500 +++ b/plugins/mod_register.lua Thu Jun 24 03:47:35 2010 +0500 @@ -46,7 +46,7 @@ -- TODO datamanager should be able to delete all user data itself datamanager.store(username, host, "vcard", nil); datamanager.store(username, host, "private", nil); - datamanager.store(username, host, "offline", nil); + datamanager.list_store(username, host, "offline", nil); local bare = username.."@"..host; for jid, item in pairs(roster) do if jid and jid ~= "pending" then @@ -59,6 +59,7 @@ end end datamanager.store(username, host, "roster", nil); + datamanager.store(username, host, "privacy", nil); datamanager.store(username, host, "accounts", nil); -- delete accounts datastore at the end module:log("info", "User removed their account: %s@%s", username, host); module:fire_event("user-deregistered", { username = username, host = host, source = "mod_register", session = session });