author | Kim Alvefur <zash@zash.se> |
Tue, 26 Nov 2019 00:09:51 +0100 | |
changeset 10455 | 347d16d70280 |
parent 10454 | c1edeb9fe337 |
child 10456 | fa11070c2cd7 |
--- 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));