aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-09-21 23:06:22 +0200
committerKim Alvefur <zash@zash.se>2015-09-21 23:06:22 +0200
commit7cfa1513cc23bb7b305f2607581c7fece4c2bf95 (patch)
tree51c885a7cf41b96add1632b35c686a93ee62dfec /plugins/mod_pubsub/mod_pubsub.lua
parentf2bb3380518228e578e43c51aae4fe41601c25f6 (diff)
downloadprosody-7cfa1513cc23bb7b305f2607581c7fece4c2bf95.tar.gz
prosody-7cfa1513cc23bb7b305f2607581c7fece4c2bf95.zip
plugins: Explicitly return to halt event propagation (session.send sometimes does not return true)
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index 40c28d27..e93a5238 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -28,7 +28,8 @@ function handle_pubsub_iq(event)
local pubsub = stanza.tags[1];
local action = pubsub.tags[1];
if not action then
- return origin.send(st.error_reply(stanza, "cancel", "bad-request"));
+ origin.send(st.error_reply(stanza, "cancel", "bad-request"));
+ return true;
end
local handler = handlers[stanza.attr.type.."_"..action.name];
if handler then