Software /
code /
prosody
Diff
plugins/mod_carbons.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 | 6804:9f40ae38f0de |
child | 7670:2be85cb3bc66 |
line wrap: on
line diff
--- a/plugins/mod_carbons.lua Mon Sep 21 23:00:49 2015 +0200 +++ b/plugins/mod_carbons.lua Mon Sep 21 23:06:22 2015 +0200 @@ -14,7 +14,8 @@ local state = stanza.tags[1].name; module:log("debug", "%s %sd carbons", origin.full_jid, state); origin.want_carbons = state == "enable" and stanza.tags[1].attr.xmlns; - return origin.send(st.reply(stanza)); + origin.send(st.reply(stanza)); + return true; end module:hook("iq-set/self/"..xmlns_carbons..":disable", toggle_carbons); module:hook("iq-set/self/"..xmlns_carbons..":enable", toggle_carbons);