Changeset

193:13ac34255c37

mod_roster fix
author Waqas Hussain <waqas20@gmail.com>
date Sun, 02 Nov 2008 02:23:52 +0500
parents 192:71c389c6fc2e
children 194:4ea1ec218976 199:eccf66b42bd7
files core/rostermanager.lua plugins/mod_roster.lua
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/rostermanager.lua	Sat Nov 01 21:10:19 2008 +0000
+++ b/core/rostermanager.lua	Sun Nov 02 02:23:52 2008 +0500
@@ -59,8 +59,8 @@
 		else
 			stanza:tag("item", {jid = jid, subscription = "remove"});
 		end
-		stanza:up();
-		stanza:up();
+		stanza:up(); -- move out from item
+		stanza:up(); -- move out from stanza
 		-- stanza ready
 		for _, session in pairs(hosts[host].sessions[username].sessions) do
 			if session.interested then
--- a/plugins/mod_roster.lua	Sat Nov 01 21:10:19 2008 +0000
+++ b/plugins/mod_roster.lua	Sun Nov 02 02:23:52 2008 +0500
@@ -26,6 +26,7 @@
 							for group in pairs(session.roster[jid].groups) do
 								roster:tag("group"):text(group):up();
 							end
+							roster:up(); -- move out from item
 						end
 					end
 					send(session, roster);