Mercurial > prosody-hg
diff plugins/muc/password.lib.lua @ 12027:5fb16f41f861
MUC: Remove remaining deprecated numeric error codes
The numeric error codes seems to have been removed from the examples in
XEP-0045 version 1.24, and were deprecated even by RFC 3920 in 2004,
only allowed for backwards compatibility.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 08 Dec 2021 21:02:14 +0100 |
| parents | b5fd1637f15c |
| children | 631b2afa7bc1 |
line wrap: on
line diff
--- a/plugins/muc/password.lib.lua Wed Dec 08 16:40:51 2021 +0100 +++ b/plugins/muc/password.lib.lua Wed Dec 08 21:02:14 2021 +0100 @@ -51,7 +51,6 @@ 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(); - reply.tags[1].attr.code = "401"; event.origin.send(reply:tag("x", {xmlns = "http://jabber.org/protocol/muc"})); return true; end
