That said, this line needs a tweak if you actually want "clan.display = off" to be respected
if(vars["chit.clan.display"] == "on" || vars["chit.clan.display"] == "true" || (vars["chit.clan.home"] == "away" || get_clan_name() != vars["chit.clan.home"])) {
The final || needs to be an && or the...