From c1aaea846a8f2ff39b4770ce09fd1cf559801216 Mon Sep 17 00:00:00 2001 From: TTtie Date: Fri, 5 Apr 2019 15:46:36 +0000 Subject: [PATCH] Don't delete permanent invites --- litecord/blueprints/invites.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/invites.py b/litecord/blueprints/invites.py index f6fb585..4fe6054 100644 --- a/litecord/blueprints/invites.py +++ b/litecord/blueprints/invites.py @@ -91,7 +91,7 @@ async def invite_precheck_gdm(user_id: int, channel_id: int): async def _inv_check_age(inv: dict): - if inv['max_age'] != 0: + if inv['max_age'] == 0: return now = datetime.datetime.utcnow()