Software /
code /
prosody
Diff
plugins/muc/members_only.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 |
parent | 11560:3bbb1af92514 |
child | 12029:631b2afa7bc1 |
line wrap: on
line diff
--- a/plugins/muc/members_only.lib.lua Wed Dec 08 16:40:51 2021 +0100 +++ b/plugins/muc/members_only.lib.lua Wed Dec 08 21:02:14 2021 +0100 @@ -122,7 +122,6 @@ local affiliation = room:get_affiliation(stanza.attr.from); if valid_affiliations[affiliation or "none"] <= valid_affiliations.none then local reply = st.error_reply(stanza, "auth", "registration-required", nil, room.jid):up(); - reply.tags[1].attr.code = "407"; event.origin.send(reply:tag("x", {xmlns = "http://jabber.org/protocol/muc"})); return true; end