Software / code / prosody
Diff
plugins/muc/register.lib.lua @ 9262:37b7cf3470f1
MUC: Move comment for clarity
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 04 Sep 2018 11:57:41 +0100 |
| parent | 9240:f9a83aca4421 |
| child | 9298:2d71040a959f |
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