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
commit7801141c088739b6bdf17847910af00b190a8fdb (patch)
tree21398071d7afbcb837e1771c1d9f646f2d1ea430 /plugins/muc/muc.lib.lua
parentd7d2b03003d4ab9d5842aeba1ecc2fd0f6d66066 (diff)
downloadprosody-7801141c088739b6bdf17847910af00b190a8fdb.tar.gz
prosody-7801141c088739b6bdf17847910af00b190a8fdb.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));