Skip to content

Commit

Permalink
irc: Fixed the IRC client crashing on messages consisting of only whi…
Browse files Browse the repository at this point in the history
…tespaces.
  • Loading branch information
MinoMino committed Dec 9, 2015
1 parent 9b9070f commit 0d889c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def handle_player_disconnect(self, player, reason):
self.irc.msg(self.relay, self.translate_colors("{} {}".format(player.name, reason)))

def handle_msg(self, irc, user, channel, msg):
if not msg:
return

cmd = msg[0].lower()
if channel.lower() == self.relay.lower():
if cmd in (".players", ".status", ".info", ".map", ".server"):
Expand Down

0 comments on commit 0d889c5

Please sign in to comment.