From 2bf61eea89bb8edd2ddac16a3d8751559514bd63 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Fri, 28 Feb 2014 14:55:04 -0500 Subject: [PATCH] jabber_mirror: Use new-style client name (imported from commit a1bc5b076a9c0384c1abdc2377183b0eac19f450) --- bots/jabber_mirror.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bots/jabber_mirror.py b/bots/jabber_mirror.py index 37fe085..f67dea8 100755 --- a/bots/jabber_mirror.py +++ b/bots/jabber_mirror.py @@ -32,6 +32,8 @@ from sleekxmpp.exceptions import IqError, IqTimeout import os, sys, zulip, getpass import re +__version__ = "1.1" + def room_to_stream(room): return str(room).rpartition("@")[0] @@ -237,7 +239,7 @@ user and mirrors messages sent to Jabber rooms to Zulip.'''.replace("\n", " ")) # This won't work for open realms options.zulip_domain = options.zulip_email.partition('@')[-1] - zulip = ZulipToJabberBot(zulip.init_from_options(options, "jabber_mirror")) + zulip = ZulipToJabberBot(zulip.init_from_options(options, "JabberMirror/" + __version__)) rooms = [s['name'] for s in zulip.client.get_streams()['streams']] xmpp = JabberToZulipBot(options.jabber_username, options.jabber_domain, options.jabber_password, rooms,