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
commitdaf5eb28ecfcc65c96ce532425b4063149940ba6 (patch)
tree51c885a7cf41b96add1632b35c686a93ee62dfec /plugins/mod_pubsub/mod_pubsub.lua
parent8724d6b9db027f8450af4d470a54dee7e64bf885 (diff)
downloadprosody-daf5eb28ecfcc65c96ce532425b4063149940ba6.tar.gz
prosody-daf5eb28ecfcc65c96ce532425b4063149940ba6.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