aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-02 02:23:52 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-02 02:23:52 +0500
commit3a14c1ab216ab1ff415f03571b2928e7be1240d1 (patch)
tree146c823c159463d10c7c81ff3c01b781cd576095
parent084b66894b817ff8b3ac0671b8f500c4bd998dd4 (diff)
downloadprosody-3a14c1ab216ab1ff415f03571b2928e7be1240d1.tar.gz
prosody-3a14c1ab216ab1ff415f03571b2928e7be1240d1.zip
mod_roster fix
-rw-r--r--core/rostermanager.lua4
-rw-r--r--plugins/mod_roster.lua1
2 files changed, 3 insertions, 2 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua
index 757c9a6c..9a203337 100644
--- a/core/rostermanager.lua
+++ b/core/rostermanager.lua
@@ -59,8 +59,8 @@ function roster_push(username, host, jid)
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
diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua
index 1ccaafd0..f5dbf742 100644
--- a/plugins/mod_roster.lua
+++ b/plugins/mod_roster.lua
@@ -26,6 +26,7 @@ add_iq_handler("c2s", "jabber:iq:roster",
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);