Diff

plugins/mod_presence.lua @ 1627:6b2109012688

Merge with 0.5
author Matthew Wild <mwild1@gmail.com>
date Mon, 03 Aug 2009 17:52:17 +0100
parent 1626:7f17d0d00fbb
child 1641:af962e6ae781
line wrap: on
line diff
--- a/plugins/mod_presence.lua	Fri Jul 31 17:19:05 2009 +0100
+++ b/plugins/mod_presence.lua	Mon Aug 03 17:52:17 2009 +0100
@@ -165,6 +165,7 @@
 
 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
 	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);