Make `players` variable local
This commit is contained in:
parent
fc2c1f67fe
commit
c449544b14
1
init.lua
1
init.lua
|
@ -251,6 +251,7 @@ minetest.register_chatcommand('who', {
|
||||||
return false, "The channel must start with a #."
|
return false, "The channel must start with a #."
|
||||||
end
|
end
|
||||||
c = c:sub(2)
|
c = c:sub(2)
|
||||||
|
local players
|
||||||
if c == main_channel:sub(2) then
|
if c == main_channel:sub(2) then
|
||||||
players = minetest.get_player_names()
|
players = minetest.get_player_names()
|
||||||
elseif channels[c] then
|
elseif channels[c] then
|
||||||
|
|
Loading…
Reference in New Issue