diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-25 23:47:49 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-25 23:47:49 +0100 |
commit | 97b1139a7cb61512f244133b6de8913f40baa382 (patch) | |
tree | 146d222219130d19c919221a1a8e4f8cf6f04201 /plugins/muc/password.lib.lua | |
parent | 1396c094b678d3e8f91ef6ccf2ccb7cf330541c5 (diff) | |
download | prosody-97b1139a7cb61512f244133b6de8913f40baa382.tar.gz prosody-97b1139a7cb61512f244133b6de8913f40baa382.zip |
MUC: Indicate origin of password related errors
Diffstat (limited to 'plugins/muc/password.lib.lua')
-rw-r--r-- | plugins/muc/password.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/password.lib.lua b/plugins/muc/password.lib.lua index 1f4b2add..6695c0cf 100644 --- a/plugins/muc/password.lib.lua +++ b/plugins/muc/password.lib.lua @@ -50,7 +50,7 @@ module:hook("muc-occupant-pre-join", function(event) if get_password(room) ~= password then 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"):up(); + 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; |