From 7170102fee306c01f42325693950f756a0a25316 Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 14 Feb 2020 21:53:21 +0000 Subject: [PATCH] Only send system EPF invites to legacy clients --- houdini/handlers/play/epf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/play/epf.py b/houdini/handlers/play/epf.py index d90e45b..eb97a9d 100644 --- a/houdini/handlers/play/epf.py +++ b/houdini/handlers/play/epf.py @@ -26,7 +26,7 @@ async def get_com_messages(p): @handlers.handler(XTPacket('l', 'mst'), before=handle_start_mail_engine) async def handle_send_job_mail(p): postcards = [] - if not p.agent_status and random.random() < 0.1: + if p.is_legacy_client and not p.agent_status and random.random() < 0.1: epf_invited = await PenguinPostcard.query.where( (PenguinPostcard.penguin_id == p.id) & ((PenguinPostcard.postcard_id == 112) | (PenguinPostcard.postcard_id == 47))).gino.scalar()