aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-12 02:15:22 +0200
committerKim Alvefur <zash@zash.se>2018-07-12 02:15:22 +0200
commit5f236e1cb5996afeca61dabdb426a5a8544d2291 (patch)
treec508ef07a611cd6fe39edd72d1ea592e77403010
parent636df213c34d261182215ad67b236c84cc59307c (diff)
downloadprosody-5f236e1cb5996afeca61dabdb426a5a8544d2291.tar.gz
prosody-5f236e1cb5996afeca61dabdb426a5a8544d2291.zip
MUC: Fix stanza reference
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
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);