Skip to content

Commit

Permalink
Don't save clan tags until a player is on a team.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Jan 28, 2018
1 parent 6ce4994 commit ae213ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripting/pugsetup.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,7 @@ public void ExecFromFile(const char[] path) {
}

stock void UpdateClanTag(int client, bool strip = false) {
if (IsPlayer(client)) {
if (IsPlayer(client) && GetClientTeam(client) != CS_TEAM_NONE) {
if (!g_SavedClanTag[client]) {
CS_GetClientClanTag(client, g_ClanTag[client], CLANTAG_LENGTH);
g_SavedClanTag[client] = true;
Expand Down

0 comments on commit ae213ba

Please sign in to comment.