aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-09-04 11:57:41 +0100
committerMatthew Wild <mwild1@gmail.com>2018-09-04 11:57:41 +0100
commit4ed8c5edb543dff496f9521346ef8217e4dc7c56 (patch)
tree224b4f3b14ff03b4c458604a690aaebccc6db7e8
parentbe40c0664b2d829e7878a738341accbd349ed4c6 (diff)
downloadprosody-4ed8c5edb543dff496f9521346ef8217e4dc7c56.tar.gz
prosody-4ed8c5edb543dff496f9521346ef8217e4dc7c56.zip
MUC: Move comment for clarity
-rw-r--r--plugins/muc/register.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/register.lib.lua b/plugins/muc/register.lib.lua
index a4e1b802..f9841e06 100644
--- a/plugins/muc/register.lib.lua
+++ b/plugins/muc/register.lib.lua
@@ -161,8 +161,8 @@ local function handle_register_iq(room, origin, stanza)
return true;
end
- -- Kick any sessions that are not using this nick before we register it
if enforce_nick then
+ -- Kick any sessions that are not using this nick before we register it
local required_room_nick = room.jid.."/"..desired_nick;
for room_nick, occupant in room:each_occupant() do
if occupant.bare_jid == user_jid and room_nick ~= required_room_nick then