From: Eric S. Raymond Date: Wed, 12 Mar 2014 16:16:02 +0000 (-0400) Subject: Fix somre confusion abot argument-passing. X-Git-Tag: 2.7~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc0c63581884c24a4bd2ba5be1b0b00eb3653bd4;p=irker.git Fix somre confusion abot argument-passing. --- diff --git a/irkerd b/irkerd index e2c338d..1e2d0af 100755 --- a/irkerd +++ b/irkerd @@ -237,7 +237,7 @@ class IRCServerConnection(): ssl_context = ssl.SSLContext(protocol) except AttributeError: # Python < 3.2 self.socket = ssl.wrap_socket( - self.socket, cert_reqs=ssl.CERT_REQUIRED, + socket, cert_reqs=ssl.CERT_REQUIRED, ssl_version=protocol, ca_certs=cafile) else: ssl_context.verify_mode = ssl.CERT_REQUIRED @@ -976,7 +976,7 @@ if __name__ == '__main__': LOG.info("irkerd version %s" % version) if args.immediate: irker.irc.add_event_handler("quit", lambda _c, _e: sys.exit(0)) - irker.handle('{"to":"%s","privmsg":"%s"}' % (immediate, arguments[0]), quit_after=True) + irker.handle('{"to":"%s","privmsg":"%s"}' % (args.immediate, arguments[0]), quit_after=True) irker.irc.spin() else: irker.thread_launch()