Changeset

9262:37b7cf3470f1

MUC: Move comment for clarity
author Matthew Wild <mwild1@gmail.com>
date Tue, 04 Sep 2018 11:57:41 +0100
parents 9261:9db9e37610b7
children 9263:4285d1efaf03
files plugins/muc/register.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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