aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-04 18:30:18 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-04 18:30:18 +0500
commitdfb8c6b98c69a2f62f60f9629b9266bf8378eac0 (patch)
treec7606e52a719ac752ecd4c7f9293279ac1067e99 /plugins
parenta5f32b09de02ecd7ca7eb49bfde8b423e56cdd49 (diff)
downloadprosody-dfb8c6b98c69a2f62f60f9629b9266bf8378eac0.tar.gz
prosody-dfb8c6b98c69a2f62f60f9629b9266bf8378eac0.zip
mod_presence: Don't stop pre-event for outgoing probes.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_presence.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index a74e24c3..509d5862 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -187,7 +187,10 @@ function handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_
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);
- if stanza.attr.type == "subscribe" then
+ if stanza.attr.type == "probe" then
+ stanza.attr.from, stanza.attr.to = st_from, st_to;
+ return;
+ elseif stanza.attr.type == "subscribe" then
-- 1. route stanza
-- 2. roster push (subscription = none, ask = subscribe)
if rostermanager.set_contact_pending_out(node, host, to_bare) then