X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_pep.lua;h=28c312944fbf0e268e8c3bf5c04d7ec3d714c4b6;hb=c43ea656e3ccdc159ba27904fe06a9226952e817;hp=f215b8be77053964d274c41078980e5b3e8f8394;hpb=cd1286f2f6e4f5fe8047edc0ee2b6855a45790c7;p=prosody.git diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index f215b8be..28c31294 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -134,8 +134,7 @@ module:hook("presence/bare", function(event) publish_all(user, recipient, origin); else recipients[user][recipient] = hash; - 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 + if self or origin.type ~= "c2s" 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")