aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-12 06:35:53 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-12 06:35:53 +0500
commitff21209224c5546b68e7f8cd73e78c9c7cbed740 (patch)
tree161a7295cc1874e5250401a5aa238b49c54cdbbe /plugins
parent25f970cc60cf9f881a9b37b6c922d054d35d085d (diff)
downloadprosody-ff21209224c5546b68e7f8cd73e78c9c7cbed740.tar.gz
prosody-ff21209224c5546b68e7f8cd73e78c9c7cbed740.zip
mod_pep: Handle the case where local contacts send directed presence with caps hash.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pep.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 28c31294..f215b8be 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -134,7 +134,8 @@ module:hook("presence/bare", function(event)
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")