# HG changeset patch # User Waqas Hussain # Date 1292117753 -18000 # Node ID 659563b1db897c9e29b7e90f9973696393c51b4a # Parent 73399dd525e846128fb59e459bae37f7580b4018 mod_pep: Handle the case where local contacts send directed presence with caps hash. diff -r 73399dd525e8 -r 659563b1db89 plugins/mod_pep.lua --- a/plugins/mod_pep.lua Sun Dec 12 06:29:19 2010 +0500 +++ b/plugins/mod_pep.lua Sun Dec 12 06:35:53 2010 +0500 @@ -134,7 +134,8 @@ publish_all(user, recipient, origin); else recipients[user][recipient] = hash; - if self or origin.type ~= "c2s" then + local from_bare = origin.username.."@"..origin.host; + if self or origin.type ~= "c2s" or (recipients[from_bare] and recipients[from_bare][origin.full_jid]) ~= hash then origin.send( st.stanza("iq", {from=stanza.attr.to, to=stanza.attr.from, id="disco", type="get"}) :query("http://jabber.org/protocol/disco#info")