From 6fa0cb3b963f1283b718bf8469723f01ed0cbc99 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Fri, 21 Feb 2014 13:36:18 -0500 Subject: [PATCH] jabber_mirror: Use consistent casing for commandline arguments (imported from commit e30aedc2f626d64b79a9b36b7f3a0fbee84a8ada) --- bots/jabber_mirror.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/jabber_mirror.py b/bots/jabber_mirror.py index 4c83b1f..158c944 100755 --- a/bots/jabber_mirror.py +++ b/bots/jabber_mirror.py @@ -211,7 +211,7 @@ if __name__ == '__main__': if len(args) < 2: sys.exit("Usage: %s EMAIL ZULIP_APIKEY" % (sys.argv[0],)); email = args[0] - ZULIP_API_KEY = args[1] + zulip_api_key = args[1] if options.password is None: options.password = getpass.getpass("Jabber password: ") if options.jabber_domain is None: @@ -220,7 +220,7 @@ if __name__ == '__main__': (username, options.zulip_domain) = email.split("@") jabber_username = username + '@' + options.jabber_domain - zulip = ZulipToJabberBot(email=email, api_key=ZULIP_API_KEY); + zulip = ZulipToJabberBot(email=email, api_key=zulip_api_key); rooms = [s['name'] for s in zulip.get_streams()['streams']] xmpp = JabberToZulipBot(jabber_username, options.password, rooms, openfire=options.openfire)