From cc0c63581884c24a4bd2ba5be1b0b00eb3653bd4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 12 Mar 2014 12:16:02 -0400 Subject: [PATCH] Fix somre confusion abot argument-passing. --- irkerd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.26.2