From d56a9a91d1603e81211b3281424a7ac21e80ce57 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 12 Jul 2018 02:15:22 +0200 Subject: MUC: Fix stanza reference --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc/muc.lib.lua') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 73c35274..af79563a 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -404,7 +404,7 @@ end, -10); module:hook("muc-occupant-pre-join", function(event) local nick = jid_resource(event.stanza.attr.from); if not nick:find("%S") then - event.origin.send(st.error_reply(stanza, "modify", "not-allowed", "Invisible Nicknames are forbidden")); + event.origin.send(st.error_reply(event.stanza, "modify", "not-allowed", "Invisible Nicknames are forbidden")); return true; end end, 1); -- cgit v1.2.3