# HG changeset patch # User Kim Alvefur # Date 1531354522 -7200 # Node ID 0f12d46cf7541630f3c1297e970dd87d6653a707 # Parent 43241e74bb1929a498ec76b0728214e8e26b8428 MUC: Fix stanza reference diff -r 43241e74bb19 -r 0f12d46cf754 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Jul 12 02:14:16 2018 +0200 +++ b/plugins/muc/muc.lib.lua Thu Jul 12 02:15:22 2018 +0200 @@ -404,7 +404,7 @@ 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);