Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 5804:bb27ba619932
mod_pep: Update COMPAT comment, it seems Asterisk 1.8 also suffers from this issue (thanks Lonnie Abelbeck)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 24 Aug 2013 23:15:24 +0100 |
| parents | e7b9ba2d0638 |
| children | 11b6157ee274 0129ffcaa7ab |
comparison
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 |
