mod_presence: Fixed: Presence probe replies now get sent to the full JID of the probe sender
authorWaqas Hussain <waqas20@gmail.com>
Mon, 06 Jul 2009 01:37:57 +0500
changeset 1488 0d1aff918303
parent 1480 93d3295fb064
child 1489 4da0131a5ccb
mod_presence: Fixed: Presence probe replies now get sent to the full JID of the probe sender
plugins/mod_presence.lua
--- a/plugins/mod_presence.lua	Sun Jul 05 20:40:31 2009 +0500
+++ b/plugins/mod_presence.lua	Mon Jul 06 01:37:57 2009 +0500
@@ -209,7 +209,7 @@
 	log("debug", "inbound presence "..stanza.attr.type.." from "..from_bare.." for "..to_bare);
 	if stanza.attr.type == "probe" then
 		if rostermanager.is_contact_subscribed(node, host, from_bare) then
-			if 0 == send_presence_of_available_resources(node, host, from_bare, origin, core_route_stanza) then
+			if 0 == send_presence_of_available_resources(node, host, st_from, origin, core_route_stanza) then
 				-- TODO send last recieved unavailable presence (or we MAY do nothing, which is fine too)
 			end
 		else