X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_presence.lua;h=f78a5950ad3315e6a21b0a65e3cb67f41bdb2d96;hb=58bf4369711eed604ab2a485f7f957e522a05796;hp=02ec6f7949459e6f720b674c6d8d377d70d6927f;hpb=758fe42815657bdc61dc8b0f1e7d4a39a967f47f;p=prosody.git diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 02ec6f79..f78a5950 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -165,7 +165,7 @@ end function handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza) local node, host = jid_split(from_bare); - if node == origin.username and host == origin.host then return; end -- No self contacts + if to_bare == origin.username.."@"..origin.host then return; end -- No self contacts local st_from, st_to = stanza.attr.from, stanza.attr.to; stanza.attr.from, stanza.attr.to = from_bare, to_bare; log("debug", "outbound presence "..stanza.attr.type.." from "..from_bare.." for "..to_bare);