Skip to content

Commit

Permalink
Make sure chatters get the correct id when updating
Browse files Browse the repository at this point in the history
Solves issue #341
  • Loading branch information
HardlySoftly committed May 21, 2016
1 parent 02654c0 commit 9072531
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chat/chatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ def update(self):
Updates the appearance of this chatter in the nicklist
according to its lobby and irc states
"""
# First make sure we've got the correct id for ourselves
if self.id == -1 and self.lobby.client.players.isPlayer(self.name):
self.id = self.lobby.client.players[self.name].id

# Color handling
self.set_color()

Expand Down

0 comments on commit 9072531

Please sign in to comment.