# HG changeset patch # User Waqas Hussain # Date 1318446829 -18000 # Node ID 676b0845eae44a9f763d2a2e5d8532d7351b7467 # Parent 7958680c459a139fc30c3277cb9d1631fad6184e mod_pep: Always include a 'from' attribute on service discovery requests to local clients (compatibility fix for OneTeam). diff -r 7958680c459a -r 676b0845eae4 plugins/mod_pep.lua --- a/plugins/mod_pep.lua Thu Oct 13 00:11:17 2011 +0500 +++ b/plugins/mod_pep.lua Thu Oct 13 00:13:49 2011 +0500 @@ -136,8 +136,9 @@ recipients[user][recipient] = hash; local from_bare = origin.type == "c2s" and origin.username.."@"..origin.host; if self or origin.type ~= "c2s" or (recipients[from_bare] and recipients[from_bare][origin.full_jid]) ~= hash then + -- COMPAT from ~= stanza.attr.to because OneTeam can't deal with missing from attribute origin.send( - st.stanza("iq", {from=stanza.attr.to, to=stanza.attr.from, id="disco", type="get"}) + st.stanza("iq", {from=user, to=stanza.attr.from, id="disco", type="get"}) :query("http://jabber.org/protocol/disco#info") ); end