Changeset

790:f42ad7385640

Fixed: User resources not disconnected correctly on account delete
author Waqas Hussain <waqas20@gmail.com>
date Thu, 12 Feb 2009 18:09:17 +0500
parents 789:ced87939984e
children 791:a4be1d80775c
files plugins/mod_register.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);