From 1afb1ea76f2a1bf89ad46f5c3c9dd5ad07dba53e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 4 Aug 2022 17:14:59 +0200 Subject: [PATCH] sneed --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 6b0905535..21c9d4b40 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -684,7 +684,7 @@ class User(Base): WHERE user1 = :u OR user2 = :u ) AS a JOIN users ON a.id = users.id - WHERE users.shadowbanned IS NOT NULL""", + WHERE users.shadowbanned IS NOT NULL or users.is_banned != 0 and users.unban_utc = 0""", {"u": self.id}).scalar() return qty > 0