X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_pep.lua;h=9ff6cac204d126304903a02bdaf28036cce73ff8;hb=6d7a9cba5240a142b1a1e397e6248cf13c261cca;hp=28c312944fbf0e268e8c3bf5c04d7ec3d714c4b6;hpb=0991eeeb695a6b1b0d3f9ad67a55e3fbc02fddf0;p=prosody.git diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 28c31294..9ff6cac2 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.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 origin.send( st.stanza("iq", {from=stanza.attr.to, to=stanza.attr.from, id="disco", type="get"}) :query("http://jabber.org/protocol/disco#info")