From d621e0626cc19c7e9de8956079df3f2abe148251 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 8 Dec 2021 21:02:14 +0100 Subject: 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. --- plugins/muc/password.lib.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'plugins/muc/password.lib.lua') diff --git a/plugins/muc/password.lib.lua b/plugins/muc/password.lib.lua index 6695c0cf..b3004eb4 100644 --- a/plugins/muc/password.lib.lua +++ b/plugins/muc/password.lib.lua @@ -51,7 +51,6 @@ module:hook("muc-occupant-pre-join", function(event) 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 -- cgit v1.2.3