diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-12 02:31:47 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-12 02:31:47 +0200 |
commit | 00706036b1e782e81ffe47b4f8d06ea1bb425294 (patch) | |
tree | 347649f52842ee47a84c615e9bb41bf81dcf5879 /plugins/muc/muc.lib.lua | |
parent | d56a9a91d1603e81211b3281424a7ac21e80ce57 (diff) | |
download | prosody-00706036b1e782e81ffe47b4f8d06ea1bb425294.tar.gz prosody-00706036b1e782e81ffe47b4f8d06ea1bb425294.zip |
MUC: Use nickname from occupant object
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index af79563a..3ec69923 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -402,7 +402,7 @@ module:hook("muc-occupant-pre-join", function(event) end, -10); module:hook("muc-occupant-pre-join", function(event) - local nick = jid_resource(event.stanza.attr.from); + local nick = jid_resource(event.occupant.nick); if not nick:find("%S") then event.origin.send(st.error_reply(event.stanza, "modify", "not-allowed", "Invisible Nicknames are forbidden")); return true; |