aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-06 15:27:37 +0100
committerKim Alvefur <zash@zash.se>2017-03-06 15:27:37 +0100
commita889b0287767bd9e7ab5f213607f453acac448f9 (patch)
treee1dbcdcce3ee737da2f39826f070d84e3d318bcd
parent2706c671c6d64f9186f4f6df557f4ae9f176f60d (diff)
downloadprosody-a889b0287767bd9e7ab5f213607f453acac448f9.tar.gz
prosody-a889b0287767bd9e7ab5f213607f453acac448f9.zip
mod_message: Return early on messages of type error (silences empty if branch warning) [luacheck]
-rw-r--r--plugins/mod_message.lua2
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