Skip to content
Snippets Groups Projects
Commit a750ffd4 authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Cosmetic fix.

parent 824c767e
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ join/leave traffic. ...@@ -12,6 +12,7 @@ join/leave traffic.
Requires Python 2.6. Requires Python 2.6.
TO-DO: some servers have a limit of 20 channels per server connection. 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 os, sys, json, irclib, exceptions, getopt, urlparse
import threading, Queue, SocketServer import threading, Queue, SocketServer
...@@ -54,7 +55,7 @@ class Session(): ...@@ -54,7 +55,7 @@ class Session():
self.queue.task_done() self.queue.task_done()
def name(self): def name(self):
"Generate a unique name for this session." "Generate a unique name for this session."
return "irker" + str(Session.count) return "irker%03d" % Session.count
def await(self): def await(self):
"Block until processing of all queued messages is done." "Block until processing of all queued messages is done."
self.queue.join() self.queue.join()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment