ctf.join(): fix bug in anti-change team
This commit is contained in:
parent
95b698cbd8
commit
02c1d684c3
@ -108,7 +108,7 @@ function ctf.join(name, team, force, by)
|
||||
local player = ctf.player(name)
|
||||
|
||||
if not force and not ctf.setting("players_can_change_team")
|
||||
and not player.team then
|
||||
and player.team and ctf.team(player.team) then
|
||||
if by then
|
||||
if by == name then
|
||||
ctf.action("teams", name .. " attempted to change to " .. team)
|
||||
|
Loading…
x
Reference in New Issue
Block a user