Commit af0fcb08 authored by Tails developers's avatar Tails developers
Browse files

Make it possible to specify group chats to join on start.

parent a4acf808
......@@ -147,10 +147,14 @@ class OtrBot(jabberbot.JabberBot):
return ""
if __name__ == '__main__':
if len(sys.argv) != 4:
if len(sys.argv) < 4:
print >> sys.stderr, \
"Usage: %s <user@domain> <password> <otr_key_file>" % sys.argv[0]
"Usage: %s <user@domain> <password> <otr_key_file> [rooms...]" \
% sys.argv[0]
username, password, otr_key_path = sys.argv[1:]
username, password, otr_key_path = sys.argv[1:4]
rooms = sys.argv[4:]
otr_bot = OtrBot(username, password, otr_key_path)
for room in rooms:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment