From 1d119b92ebbbc377218d9b58ae8716a12bc36dcc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 2 Oct 2012 17:40:41 -0400 Subject: [PATCH] Fix a goof. I ihad initialized nick_trial at the wrong place. --- irkerd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/irkerd b/irkerd index bbd11a0..2b5e21a 100755 --- a/irkerd +++ b/irkerd @@ -104,7 +104,7 @@ class Connection: self.irker = irkerd self.servername = servername self.port = port - self.nick_trial = random.randint(1, 990) + self.nick_trial = None self.connection = None self.status = "unseen" self.last_xmit = time.time() @@ -165,7 +165,8 @@ class Connection: if not self.connection: self.connection = self.irker.irc.server() self.connection.context = self - self.nick_trial = 1 + # Try to avoid colliding with other instances + self.nick_trial = random.randint(1, 990) self.channels_joined = [] # This will throw irc.client.ServerConnectionError on failure try: -- 2.26.2