diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-06 15:27:37 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-06 15:27:37 +0100 |
commit | 11dc53576d751ef7e62bc439831d35f74de74e5b (patch) | |
tree | e1dbcdcce3ee737da2f39826f070d84e3d318bcd /plugins/mod_message.lua | |
parent | 7e8dcd944e500bb5eae41a50826226bc13e0ae85 (diff) | |
download | prosody-11dc53576d751ef7e62bc439831d35f74de74e5b.tar.gz prosody-11dc53576d751ef7e62bc439831d35f74de74e5b.zip |
mod_message: Return early on messages of type error (silences empty if branch warning) [luacheck]
Diffstat (limited to 'plugins/mod_message.lua')
-rw-r--r-- | plugins/mod_message.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_message.lua b/plugins/mod_message.lua index 47da5f46..2ee75c21 100644 --- a/plugins/mod_message.lua +++ b/plugins/mod_message.lua @@ -20,7 +20,7 @@ local function process_to_bare(bare, origin, stanza) local t = stanza.attr.type; if t == "error" then - -- discard + return true; -- discard elseif t == "groupchat" then origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); elseif t == "headline" then |