From d3c94cd04b55d35027b973e06e8f8b8462f2a992 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 26 Aug 2012 07:00:33 -0400 Subject: [PATCH] Ugh. Debug code was buggy again. --- irker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irker.py b/irker.py index 28fe59a..91be186 100755 --- a/irker.py +++ b/irker.py @@ -68,7 +68,7 @@ class Irker: "Persistent IRC multiplexer." def __init__(self, debuglevel=0): self.debuglevel = debuglevel - self.irc = irclib.IRC(self.debuglevel-1) + self.irc = irclib.IRC(debuglevel=self.debuglevel-1) thread = threading.Thread(target=self.irc.process_forever) self.irc._thread = thread thread.daemon = True @@ -110,7 +110,7 @@ if __name__ == '__main__': debuglevel = 0 (options, arguments) = getopt.getopt(sys.argv[1:], "-d:") for (opt, val) in options: - if opt == '-v': + if opt == '-d': debuglevel = int(val) irker = Irker(debuglevel=debuglevel) irker.run(sys.stdin) -- 2.26.2