Fix mit_sync_bots for personals only.

(imported from commit 9fd7ac87d2cdc32413edefbde8870bbe59b67380)
This commit is contained in:
Tim Abbott 2012-10-18 11:14:03 -04:00
parent 5fe0487783
commit dde4b785f9

View file

@ -75,7 +75,8 @@ def humbug_username(zephyr_username):
return zephyr_username.lower().split("@")[0] + "@mit.edu" return zephyr_username.lower().split("@")[0] + "@mit.edu"
def send_humbug(zeph): def send_humbug(zeph):
zeph["forged"] = "yes" if options.forward_class_messages:
zeph["forged"] = "yes"
zeph["sender"] = humbug_username(zeph["sender"]) zeph["sender"] = humbug_username(zeph["sender"])
zeph['fullname'] = username_to_fullname(zeph['sender']) zeph['fullname'] = username_to_fullname(zeph['sender'])
zeph['shortname'] = zeph['sender'].split('@')[0] zeph['shortname'] = zeph['sender'].split('@')[0]