Mercurial > prosody-hg
diff plugins/muc/password.lib.lua @ 11200:bf8f2da84007
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Nov 2020 22:31:25 +0100 |
| parents | b5fd1637f15c |
| children | 5fb16f41f861 |
line wrap: on
line diff
--- a/plugins/muc/password.lib.lua Thu Nov 05 22:27:17 2020 +0100 +++ b/plugins/muc/password.lib.lua Thu Nov 05 22:31:25 2020 +0100 @@ -50,7 +50,7 @@ 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;
