Fix somre confusion abot argument-passing.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 12 Mar 2014 16:16:02 +0000 (12:16 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 12 Mar 2014 16:16:02 +0000 (12:16 -0400)
irkerd

diff --git a/irkerd b/irkerd
index e2c338d7957aa42bec66baad91d71694f905c8d6..1e2d0afaf536f815b184db1178cc121adbb6269b 100755 (executable)
--- 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()