diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-08 21:02:14 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-08 21:02:14 +0100 |
commit | d621e0626cc19c7e9de8956079df3f2abe148251 (patch) | |
tree | b0f870ac01fc84e84e98919787f3df09ba66021c /plugins/muc/members_only.lib.lua | |
parent | 3ae5d13641715b2c7941351a7fc8ff0153db4cef (diff) | |
download | prosody-d621e0626cc19c7e9de8956079df3f2abe148251.tar.gz prosody-d621e0626cc19c7e9de8956079df3f2abe148251.zip |
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.
Diffstat (limited to 'plugins/muc/members_only.lib.lua')
-rw-r--r-- | plugins/muc/members_only.lib.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/muc/members_only.lib.lua b/plugins/muc/members_only.lib.lua index 6a2543e1..64587726 100644 --- a/plugins/muc/members_only.lib.lua +++ b/plugins/muc/members_only.lib.lua @@ -122,7 +122,6 @@ module:hook("muc-occupant-pre-join", function(event) 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 |