Diff

plugins/mod_roster.lua @ 132:9a4aa57af367

Roster updates - Added support for item.ask attribute in rostermanager and mod_roster - Updated roster docs - Removed old code from rostermanager
author Waqas Hussain <waqas20@gmail.com>
date Thu, 23 Oct 2008 20:02:30 +0500
parent 114:bed2a8508cf5
child 177:606c433955e7
line wrap: on
line diff
--- a/plugins/mod_roster.lua	Thu Oct 23 19:53:02 2008 +0500
+++ b/plugins/mod_roster.lua	Thu Oct 23 20:02:30 2008 +0500
@@ -19,6 +19,7 @@
 						roster:tag("item", {
 							jid = jid,
 							subscription = session.roster[jid].subscription,
+							ask = session.roster[jid].ask,
 							name = session.roster[jid].name,
 						});
 						for group in pairs(session.roster[jid].groups) do
@@ -54,6 +55,7 @@
 									if r_item.name == "" then r_item.name = nil; end
 									if session.roster[item.attr.jid] then
 										r_item.subscription = session.roster[item.attr.jid].subscription;
+										r_item.ask = session.roster[item.attr.jid].ask;
 									else
 										r_item.subscription = "none";
 									end