mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 22:27:38 +03:00
mod_message: Return early on messages of type error (silences empty if branch warning) [luacheck]
This commit is contained in:
parent
7e8dcd944e
commit
11dc53576d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue