ctf.join(): fix bug in anti-change team

This commit is contained in:
rubenwardy 2015-07-14 13:01:01 +01:00
parent 95b698cbd8
commit 02c1d684c3

View File

@ -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)