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

Ugh. Debug code was buggy again.

parent f5c3fc43
No related branches found
No related tags found
No related merge requests found
......@@ -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)
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