Mercurial > prosody-hg
diff plugins/muc/password.lib.lua @ 11120:b2331f3dfeea
Merge 0.11->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 30 Sep 2020 09:50:33 +0100 |
| parents | b5fd1637f15c |
| children | 5fb16f41f861 |
line wrap: on
line diff
--- a/plugins/muc/password.lib.lua Thu Oct 01 15:08:58 2020 +0100 +++ b/plugins/muc/password.lib.lua Wed Sep 30 09:50:33 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;
