aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-26 00:09:51 +0100
committerKim Alvefur <zash@zash.se>2019-11-26 00:09:51 +0100
commit47fd3433fc4ac4d203d2ae9c045e2c5e4356a4f2 (patch)
tree21398071d7afbcb837e1771c1d9f646f2d1ea430 /plugins/muc/muc.lib.lua
parentb2e9ee4b6bf0950e73252277c9d15c629b2308e0 (diff)
downloadprosody-47fd3433fc4ac4d203d2ae9c045e2c5e4356a4f2.tar.gz
prosody-47fd3433fc4ac4d203d2ae9c045e2c5e4356a4f2.zip
MUC: Add missing reference to room (thanks buildbot) [luacheck]
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index ed6011e1..6b5f6068 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -456,6 +456,7 @@ module:hook("muc-occupant-pre-join", function(event)
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));