plugins/mod_register.lua

changeset 790
f42ad7385640
parent 760
90ce865eebd8
child 836
073386be5ccc
--- 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);

mercurial