aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_roster.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-10-23 20:02:30 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-10-23 20:02:30 +0500
commit869f2859c3538ca67758cbfe10c57eefd6e09899 (patch)
tree97c8d73bafad9246d6e1f1c38eadfe9ad0456a2e /plugins/mod_roster.lua
parent7bf903298c9349bce933a942d7f8b74b1537da46 (diff)
downloadprosody-869f2859c3538ca67758cbfe10c57eefd6e09899.tar.gz
prosody-869f2859c3538ca67758cbfe10c57eefd6e09899.zip
Roster updates
- Added support for item.ask attribute in rostermanager and mod_roster - Updated roster docs - Removed old code from rostermanager
Diffstat (limited to 'plugins/mod_roster.lua')
-rw-r--r--plugins/mod_roster.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua
index 8a20f76d..d02f77a5 100644
--- a/plugins/mod_roster.lua
+++ b/plugins/mod_roster.lua
@@ -19,6 +19,7 @@ add_iq_handler("c2s", "jabber:iq:roster",
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 @@ add_iq_handler("c2s", "jabber:iq:roster",
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