Changeset

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
parents 10450:c1edeb9fe337
children 10452:fa11070c2cd7
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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));