Fix bug with CSM restrictions

This commit is contained in:
luk3yx 2019-04-28 07:48:11 +12:00
parent 25a3336a56
commit 93caba075c
1 changed files with 6 additions and 4 deletions

View File

@ -124,12 +124,14 @@ chat_channels.get_channel_users = function(c)
if not connected_players[name] then
local empty = true
local visible_players = minetest.get_player_names()
if visible_players then
for _, player in ipairs(visible_players) do
if player == name then
empty = false
break
end
end
end
if empty then return {} end
end
return {name}