mod_presence: Enable firing of pre-events for probes.
authorWaqas Hussain <waqas20@gmail.com>
Fri, 4 Jun 2010 13:36:04 +0000 (18:36 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Fri, 4 Jun 2010 13:36:04 +0000 (18:36 +0500)
plugins/mod_presence.lua

index 509d5862d6cc85929b0f848db3e19cb0401b390f..6da0f8639f65cc42418bc885e4538dd86aedca2e 100644 (file)
@@ -97,7 +97,7 @@ function handle_normal_presence(origin, stanza)
                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