diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-02-12 18:09:17 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-02-12 18:09:17 +0500 |
commit | 0cc499e83935a21ac2ec7ec052d01ce1d170a6e0 (patch) | |
tree | 0d81c91dfd5560d85b01f7c315f4c69c2c3277ca | |
parent | f956da83d28015eb28543f1fbb04f722ad7eef32 (diff) | |
download | prosody-0cc499e83935a21ac2ec7ec052d01ce1d170a6e0.tar.gz prosody-0cc499e83935a21ac2ec7ec052d01ce1d170a6e0.zip |
Fixed: User resources not disconnected correctly on account delete
-rw-r--r-- | plugins/mod_register.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index 2594adf7..ba5bcf36 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -37,7 +37,7 @@ module:add_iq_handler("c2s", "jabber:iq:register", function (session, stanza) session.send(st.reply(stanza)); local roster = session.roster; for _, session in pairs(hosts[session.host].sessions[session.username].sessions) do -- disconnect all resources - session:disconnect({condition = "not-authorized", text = "Account deleted"}); + session:close({condition = "not-authorized", text = "Account deleted"}); end -- TODO datamanager should be able to delete all user data itself datamanager.store(session.username, session.host, "roster", nil); |