# HG changeset patch
# User Waqas Hussain <waqas20@gmail.com>
# Date 1259222411 -18000
# Node ID 3987078bb179cd8c24fa56f08df34b9b2a48d27f
# Parent  1888368c58c59895ba7d8b8f7eab8f425308c600
mod_presence: Removed an unnecessary compatibility workaround which was causing issues with unavailable presence exchange after subscription removal.

diff -r 1888368c58c5 -r 3987078bb179 plugins/mod_presence.lua
--- a/plugins/mod_presence.lua	Thu Nov 26 12:57:24 2009 +0500
+++ b/plugins/mod_presence.lua	Thu Nov 26 13:00:11 2009 +0500
@@ -200,9 +200,6 @@
 			rostermanager.roster_push(node, host, to_bare);
 		end
 		core_route_stanza(origin, stanza);
-		-- COMPAT: Some legacy clients keep displaying unsubscribed contacts as online unless an unavailable presence is sent:
-		send_presence_of_available_resources(node, host, to_bare, origin, core_route_stanza,
-			st.presence({ type="unavailable", from=from_bare, to=to_bare, id=stanza.attr.id }));
 	end
 	stanza.attr.from, stanza.attr.to = st_from, st_to;
 end