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
commit11dc53576d751ef7e62bc439831d35f74de74e5b (patch)
treee1dbcdcce3ee737da2f39826f070d84e3d318bcd
parent7e8dcd944e500bb5eae41a50826226bc13e0ae85 (diff)
downloadprosody-11dc53576d751ef7e62bc439831d35f74de74e5b.tar.gz
prosody-11dc53576d751ef7e62bc439831d35f74de74e5b.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