Skip to content

Commit

Permalink
Merge pull request #346 from HardlySoftly/chat_fixes
Browse files Browse the repository at this point in the history
Make sure chatters get the correct id when updating
  • Loading branch information
Sheeo committed May 23, 2016
2 parents 20bd703 + 9072531 commit e222b51
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 e222b51

Please sign in to comment.