MUC: Move comment for clarity
authorMatthew Wild <mwild1@gmail.com>
Tue, 04 Sep 2018 11:57:41 +0100
changeset 9265 37b7cf3470f1
parent 9264 9db9e37610b7
child 9266 4285d1efaf03
MUC: Move comment for clarity
plugins/muc/register.lib.lua
--- a/plugins/muc/register.lib.lua	Sat Aug 18 13:48:38 2018 +0200
+++ b/plugins/muc/register.lib.lua	Tue Sep 04 11:57:41 2018 +0100
@@ -161,8 +161,8 @@
 			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