zephyr_mirror: Fix detection of personals.

(imported from commit 1fc9050bad36dc15e76f65bdb6532e3e7e601a40)
This commit is contained in:
Tim Abbott 2012-12-05 12:35:43 -05:00
parent 37c837904f
commit 28d98729a5

View file

@ -462,7 +462,7 @@ def forward_to_zephyr(message):
zephyr_class = "message"
zwrite_args.extend(["-c", zephyr_class, "-i", instance])
elif message['type'] == "private":
if len(message['display_recipient']) == 1:
if len(message['display_recipient']) <= 2:
recipient = to_zephyr_username(message["display_recipient"][0]["email"])
zwrite_args.extend([recipient])
else: