aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit7f0bca31d14f053fba99ead172158b3b837240b3 (patch)
tree224b4f3b14ff03b4c458604a690aaebccc6db7e8 /plugins
parent734b966e3002bf37f3edef7a1845e68bc745b83e (diff)
downloadprosody-7f0bca31d14f053fba99ead172158b3b837240b3.tar.gz
prosody-7f0bca31d14f053fba99ead172158b3b837240b3.zip
MUC: Move comment for clarity
Diffstat (limited to 'plugins')
-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