From: Eric S. Raymond Date: Mon, 1 Oct 2012 06:17:51 +0000 (-0400) Subject: Prevent a crash. X-Git-Tag: 1.3~4 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=763b3baeb072a132130137c169d8f837bedf99b6;p=irker.git Prevent a crash. --- diff --git a/irkerd b/irkerd index 598017b..91199dc 100755 --- a/irkerd +++ b/irkerd @@ -237,7 +237,7 @@ class Target(): ircport = 6667 self.servername = irchost self.channel = parsed.path.lstrip('/') - if self.channel[0] not in "#&+": + if self.channel and self.channel[0] not in "#&+": self.channel = "#" + self.channel self.port = int(ircport) def valid(self):