We can now negotiate out of nick conficts.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 28 Aug 2012 20:14:45 +0000 (16:14 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 28 Aug 2012 20:51:17 +0000 (16:51 -0400)
irker.py

index 9c50766e639d3856a381d40a98994362c155088d..b6cb54d19e2e9cd9cbbfe6de2fc17a1e9810ded8 100755 (executable)
--- a/irker.py
+++ b/irker.py
@@ -200,10 +200,10 @@ class Irker:
     def _handle_welcome(self, connection, event):
         "Welcome arrived, nick accepted for this connection."
         connection.nick_accepted = True
-        self.debug("nick %s accepted" % self.nickname(connection.nick_trial))
+        self.debug(1, "nick %s accepted" % self.nickname(connection.nick_trial))
     def _handle_badnick(self, connection, event):
         "Nick not accepted for this connection."
-        self.debug("nick %s rejected" % self.nickname(connection.nick_trial))
+        self.debug(1, "nick %s rejected" % self.nickname(connection.nick_trial))
         connection.nick_trial += 1
         connection.nick(self.nickname(connection.nick_trial))
     def handle(self, line):
@@ -261,7 +261,7 @@ if __name__ == '__main__':
         elif opt == '-V':      # Emit version and exit
             sys.stdout.write("irker version %s\n" % version)
             sys.exit(0)
-    irker = Irker(debuglevel=debuglevel, namesuffix=namesuffix)
+    irker = Irker(debuglevel=debuglevel)
     tcpserver = SocketServer.TCPServer((host, port), IrkerTCPHandler)
     udpserver = SocketServer.UDPServer((host, port), IrkerUDPHandler)
     threading.Thread(target=tcpserver.serve_forever).start()