Software /
code /
prosody
Diff
plugins/muc/password.lib.lua @ 12029:631b2afa7bc1
MUC: Remove <{muc}x> tags in some errors
Including the payload of the stanza that caused the error is optional
and we're generally not doing it anywhere else.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 08 Dec 2021 21:55:25 +0100 |
parent | 12027:5fb16f41f861 |
child | 12977:74b9e05af71e |
line wrap: on
line diff
--- a/plugins/muc/password.lib.lua Wed Dec 08 21:06:16 2021 +0100 +++ b/plugins/muc/password.lib.lua Wed Dec 08 21:55:25 2021 +0100 @@ -51,7 +51,7 @@ local from, to = stanza.attr.from, stanza.attr.to; module:log("debug", "%s couldn't join due to invalid password: %s", from, to); local reply = st.error_reply(stanza, "auth", "not-authorized", nil, room.jid):up(); - event.origin.send(reply:tag("x", {xmlns = "http://jabber.org/protocol/muc"})); + event.origin.send(reply); return true; end end, -20);