mirror of
https://github.com/solero/houdini.git
synced 2024-11-28 08:27:18 +00:00
Only send system EPF invites to legacy clients
This commit is contained in:
parent
06d449e601
commit
7170102fee
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user