From 02c1d684c381c06167a2209097d1a11d85be3609 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 14 Jul 2015 13:01:01 +0100 Subject: [PATCH] ctf.join(): fix bug in anti-change team --- mods/capturetheflag/ctf/teams.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/capturetheflag/ctf/teams.lua b/mods/capturetheflag/ctf/teams.lua index cdecd99..d787596 100644 --- a/mods/capturetheflag/ctf/teams.lua +++ b/mods/capturetheflag/ctf/teams.lua @@ -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)