mod_presence: Enable firing of pre-events for probes.

Fri, 04 Jun 2010 18:36:04 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 04 Jun 2010 18:36:04 +0500
changeset 3183
28a5c0bda928
parent 3182
a19dbb6446a0
child 3184
1b076d237a20

mod_presence: Enable firing of pre-events for probes.

plugins/mod_presence.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_presence.lua	Fri Jun 04 18:30:18 2010 +0500
+++ b/plugins/mod_presence.lua	Fri Jun 04 18:36:04 2010 +0500
@@ -97,7 +97,7 @@
 		for jid, item in pairs(roster) do -- probe all contacts we are subscribed to
 			if item.subscription == "both" or item.subscription == "to" then
 				probe.attr.to = jid;
-				core_route_stanza(origin, probe);
+				core_post_stanza(origin, probe, true);
 			end
 		end
 		for _, res in pairs(user and user.sessions or NULL) do -- broadcast from all available resources

mercurial