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 | a889b0287767bd9e7ab5f213607f453acac448f9 (patch) | |
tree | e1dbcdcce3ee737da2f39826f070d84e3d318bcd /plugins | |
parent | 2706c671c6d64f9186f4f6df557f4ae9f176f60d (diff) | |
download | prosody-a889b0287767bd9e7ab5f213607f453acac448f9.tar.gz prosody-a889b0287767bd9e7ab5f213607f453acac448f9.zip |
mod_message: Return early on messages of type error (silences empty if branch warning) [luacheck]
Diffstat (limited to 'plugins')
-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 |