From a889b0287767bd9e7ab5f213607f453acac448f9 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 6 Mar 2017 15:27:37 +0100 Subject: mod_message: Return early on messages of type error (silences empty if branch warning) [luacheck] --- plugins/mod_message.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_message.lua') 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 -- cgit v1.2.3