txlyre 1 month ago
parent
commit
ecc3685db0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -266,7 +266,7 @@ async def check_pending():
             for user_id in pending[peer_id]:
                 pending_user = pending[peer_id][user_id]
 
-                if pending_user.expired:
+                if pending_user.expired or pending_user.ban_flag:
                     await pending_user.kick()
 
         await asyncio.sleep(1)