From 1399d251616807ebeecd8fd4e76c63f64204ff7f Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 13 Oct 2011 00:13:49 +0500 Subject: mod_pep: Always include a 'from' attribute on service discovery requests to local clients (compatibility fix for OneTeam). --- plugins/mod_pep.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index bd6f4b29..bbdd5f19 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -136,8 +136,9 @@ module:hook("presence/bare", function(event) 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 -- cgit v1.2.3