aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/password.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-08 21:55:25 +0100
committerKim Alvefur <zash@zash.se>2021-12-08 21:55:25 +0100
commit449311b2d112182be22ab9bef06ae00d200726e9 (patch)
tree5ae1529d0dac1108851bb6063b6fd8622c7ea324 /plugins/muc/password.lib.lua
parent1c0c380203e22f9fba14186380e187b956722220 (diff)
downloadprosody-449311b2d112182be22ab9bef06ae00d200726e9.tar.gz
prosody-449311b2d112182be22ab9bef06ae00d200726e9.zip
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.
Diffstat (limited to 'plugins/muc/password.lib.lua')
-rw-r--r--plugins/muc/password.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/password.lib.lua b/plugins/muc/password.lib.lua
index b3004eb4..dd3cb658 100644
--- a/plugins/muc/password.lib.lua
+++ b/plugins/muc/password.lib.lua
@@ -51,7 +51,7 @@ 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();
- event.origin.send(reply:tag("x", {xmlns = "http://jabber.org/protocol/muc"}));
+ event.origin.send(reply);
return true;
end
end, -20);