From: Eric S. Raymond Date: Sun, 26 Aug 2012 14:01:08 +0000 (-0400) Subject: Cosmetic fix. X-Git-Tag: 1.0~115 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a750ffd42b567d0ae6ca7f59c2892fe0868d7489;p=irker.git Cosmetic fix. --- diff --git a/irker.py b/irker.py index 565fb4c..fea8a14 100755 --- a/irker.py +++ b/irker.py @@ -12,6 +12,7 @@ join/leave traffic. Requires Python 2.6. TO-DO: some servers have a limit of 20 channels per server connection. +TO-DO: Register the port? """ import os, sys, json, irclib, exceptions, getopt, urlparse import threading, Queue, SocketServer @@ -54,7 +55,7 @@ class Session(): self.queue.task_done() def name(self): "Generate a unique name for this session." - return "irker" + str(Session.count) + return "irker%03d" % Session.count def await(self): "Block until processing of all queued messages is done." self.queue.join()