From: Eric S. Raymond Date: Sun, 26 Aug 2012 11:00:33 +0000 (-0400) Subject: Ugh. Debug code was buggy again. X-Git-Tag: 1.0~124 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d3c94cd04b55d35027b973e06e8f8b8462f2a992;p=irker.git Ugh. Debug code was buggy again. --- 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)