--- a/plugins/mod_register.lua Wed Feb 11 19:53:09 2009 +0000
+++ b/plugins/mod_register.lua Thu Feb 12 18:09:17 2009 +0500
@@ -37,7 +37,7 @@
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);