File diff r7494:2e43e3339051 → r7495:b5ff67381008
src/network/network_server.cpp
Show inline comments
 
@@ -822,6 +822,11 @@ static bool CheckCommandFlags(const Comm
 
		return false;
 
	}
 

	
 
	if (cp->cmd != CMD_PLAYER_CTRL && !IsValidPlayer(cp->player) && ci->client_index != NETWORK_SERVER_INDEX) {
 
		IConsolePrintF(_icolour_err, "WARNING: spectator issueing command from client %d (IP: %s), kicking...", ci->client_index, GetPlayerIP(ci));
 
		return false;
 
	}
 

	
 
	return true;
 
}