Make `players` variable local

This commit is contained in:
luk3yx 2018-04-07 14:09:19 +12:00
parent fc2c1f67fe
commit c449544b14
1 changed files with 1 additions and 0 deletions

View File

@ -251,6 +251,7 @@ minetest.register_chatcommand('who', {
return false, "The channel must start with a #."
end
c = c:sub(2)
local players
if c == main_channel:sub(2) then
players = minetest.get_player_names()
elseif channels[c] then