jabber_mirror: Fix Zulip error handling

(imported from commit 8548576635e5be9b725e059c2d4d9ef9953ec97a)
This commit is contained in:
Zev Benjamin 2014-03-04 19:21:08 -05:00
parent ce660ac03f
commit 799953e7df

View file

@ -155,7 +155,7 @@ class JabberToZulipBot(ClientXMPP):
content = msg["body"],
)
ret = self.zulip.client.send_message(zulip_message)
if ret.get("status") != "success":
if ret.get("result") != "success":
logging.error(ret)
def group(self, msg):
@ -182,7 +182,7 @@ class JabberToZulipBot(ClientXMPP):
content = msg["body"],
)
ret = self.zulip.client.send_message(zulip_message)
if ret.get("status") != "success":
if ret.get("result") != "success":
logging.error(ret)
def nickname_to_jid(self, room, nick):