Software /
code /
prosody
Diff
plugins/mod_pubsub/mod_pubsub.lua @ 6841:be87ab2d611c
plugins: Explicitly return to halt event propagation (session.send sometimes does not return true)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Sep 2015 23:06:22 +0200 |
parent | 6657:f1af4edd5722 |
child | 6843:161cccfdf015 |
child | 7708:c420a38db5ef |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Mon Sep 21 23:00:49 2015 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Mon Sep 21 23:06:22 2015 +0200 @@ -28,7 +28,8 @@ 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