# HG changeset patch # User Kim Alvefur # Date 1574723391 -3600 # Node ID 347d16d7028081f5c4fe13279de6e3fd71ddec10 # Parent c1edeb9fe337c10e7860daa978d256f5b9fd4307 MUC: Add missing reference to room (thanks buildbot) [luacheck] diff -r c1edeb9fe337 -r 347d16d70280 plugins/muc/muc.lib.lua --- 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));