aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-02-12 18:09:17 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-02-12 18:09:17 +0500
commit0cc499e83935a21ac2ec7ec052d01ce1d170a6e0 (patch)
tree0d81c91dfd5560d85b01f7c315f4c69c2c3277ca /plugins
parentf956da83d28015eb28543f1fbb04f722ad7eef32 (diff)
downloadprosody-0cc499e83935a21ac2ec7ec052d01ce1d170a6e0.tar.gz
prosody-0cc499e83935a21ac2ec7ec052d01ce1d170a6e0.zip
Fixed: User resources not disconnected correctly on account delete
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_register.lua2
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);