Skip to content

Commit

Permalink
hide leave warning in hotplug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Jul 9, 2024
1 parent 2524303 commit 78f2ef8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controllers/players.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ def handle_player_leave(self, data):
id_str = data[id_start:id_end]
player = self.get_player_by_id(id_str)
if player is None:
echo("[WARNING] invalid player left id=" + str(id_str))
echo(" DATA=" + str(data))
if self.settings.get("hotplug") != 1:
echo("[WARNING] invalid player left id=" + str(id_str))
echo(" DATA=" + str(data))
self.save_and_delete_player(player)

# [game]: team_join player='0:ChillerDragon' team=0
Expand Down

0 comments on commit 78f2ef8

Please sign in to comment.