plugins/mod_roster.lua
changeset 114 bed2a8508cf5
parent 110 bb5ac5976a97
child 132 9a4aa57af367
equal deleted inserted replaced
113:9026fdad1531 114:bed2a8508cf5
    24 						for group in pairs(session.roster[jid].groups) do
    24 						for group in pairs(session.roster[jid].groups) do
    25 							roster:tag("group"):text(group):up();
    25 							roster:tag("group"):text(group):up();
    26 						end
    26 						end
    27 					end
    27 					end
    28 					send(session, roster);
    28 					send(session, roster);
       
    29 					session.interested = true; -- resource is interested in roster updates
    29 					return true;
    30 					return true;
    30 				elseif stanza.attr.type == "set" then
    31 				elseif stanza.attr.type == "set" then
    31 					local query = stanza.tags[1];
    32 					local query = stanza.tags[1];
    32 					if #query.tags == 1 and query.tags[1].name == "item"
    33 					if #query.tags == 1 and query.tags[1].name == "item"
    33 							and query.tags[1].attr.xmlns == "jabber:iq:roster" and query.tags[1].attr.jid then
    34 							and query.tags[1].attr.xmlns == "jabber:iq:roster" and query.tags[1].attr.jid then