From 763b3baeb072a132130137c169d8f837bedf99b6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 1 Oct 2012 02:17:51 -0400 Subject: [PATCH] Prevent a crash. --- irkerd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2