plugins/mod_pep.lua
changeset 5804 bb27ba619932
parent 5682 e7b9ba2d0638
child 5805 11b6157ee274
child 6867 0129ffcaa7ab
equal deleted inserted replaced
5803:953942f4d737 5804:bb27ba619932
   133 					publish_all(user, recipient, origin);
   133 					publish_all(user, recipient, origin);
   134 				else
   134 				else
   135 					recipients[user][recipient] = hash;
   135 					recipients[user][recipient] = hash;
   136 					local from_bare = origin.type == "c2s" and origin.username.."@"..origin.host;
   136 					local from_bare = origin.type == "c2s" and origin.username.."@"..origin.host;
   137 					if self or origin.type ~= "c2s" or (recipients[from_bare] and recipients[from_bare][origin.full_jid]) ~= hash then
   137 					if self or origin.type ~= "c2s" or (recipients[from_bare] and recipients[from_bare][origin.full_jid]) ~= hash then
   138 						-- COMPAT from ~= stanza.attr.to because OneTeam can't deal with missing from attribute
   138 						-- COMPAT from ~= stanza.attr.to because OneTeam and Asterisk 1.8 can't deal with missing from attribute
   139 						origin.send(
   139 						origin.send(
   140 							st.stanza("iq", {from=user, to=stanza.attr.from, id="disco", type="get"})
   140 							st.stanza("iq", {from=user, to=stanza.attr.from, id="disco", type="get"})
   141 								:query("http://jabber.org/protocol/disco#info")
   141 								:query("http://jabber.org/protocol/disco#info")
   142 						);
   142 						);
   143 					end
   143 					end