jabber_mirror: Use consistent method name casing

(imported from commit 0f68b94bab992ba20aa7c185fa40eafeea22f92e)
This commit is contained in:
Zev Benjamin 2014-02-21 13:31:10 -05:00
parent e7a1d3b0d7
commit 033e821963

View file

@ -60,7 +60,7 @@ class JabberToZulipBot(ClientXMPP):
import ssl import ssl
self.ssl_version = ssl.PROTOCOL_SSLv3 self.ssl_version = ssl.PROTOCOL_SSLv3
def setZulipClient(self, client): def set_zulip_client(self, client):
self.zulip = client self.zulip = client
def session_start(self, event): def session_start(self, event):
@ -135,7 +135,7 @@ class ZulipToJabberBot(zulip.Client):
self.jabber = None self.jabber = None
self.email = email self.email = email
def setJabberClient(self, client): def set_jabber_client(self, client):
self.jabber = client self.jabber = client
def process_message(self, event): def process_message(self, event):
@ -224,8 +224,8 @@ if __name__ == '__main__':
openfire=options.openfire) openfire=options.openfire)
xmpp.connect(use_tls=not options.no_use_tls) xmpp.connect(use_tls=not options.no_use_tls)
xmpp.process(block=False) xmpp.process(block=False)
xmpp.setZulipClient(zulip) xmpp.set_zulip_client(zulip)
zulip.setJabberClient(xmpp) zulip.set_jabber_client(xmpp)
try: try:
logging.info("Connecting to Zulip.") logging.info("Connecting to Zulip.")
zulip.call_on_each_event(zulip.process_message) zulip.call_on_each_event(zulip.process_message)