Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 10451:347d16d70280
MUC: Add missing reference to room (thanks buildbot) [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 26 Nov 2019 00:09:51 +0100 |
parent | 10449:2e36a54906e4 |
child | 10550:0566b45da987 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Tue Nov 26 00:02:13 2019 +0100 +++ b/plugins/muc/muc.lib.lua Tue Nov 26 00:09:51 2019 +0100 @@ -456,6 +456,7 @@ end, 2); module:hook("muc-occupant-pre-change", function(event) + local room = event.room; local nick = jid_resource(event.dest_occupant.nick); if not resourceprep(nick, true) then -- strict event.origin.send(st.error_reply(event.stanza, "modify", "jid-malformed", "Nickname must pass strict validation", room.jid));