# HG changeset patch # User Kim Alvefur # Date 1488810457 -3600 # Node ID beaeafedc2d73fcfae64611df0fd082c3d92e9c5 # Parent bba71bfe2154785dcfc06d784b24661ed715e867 mod_message: Return early on messages of type error (silences empty if branch warning) [luacheck] diff -r bba71bfe2154 -r beaeafedc2d7 plugins/mod_message.lua --- a/plugins/mod_message.lua Mon Mar 06 15:24:44 2017 +0100 +++ b/plugins/mod_message.lua Mon Mar 06 15:27:37 2017 +0100 @@ -20,7 +20,7 @@ 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