From 3e2fd8a8af973c0641cbd4cf8298de4bcefaa0d8 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 31 Jan 2022 16:00:02 +0700 Subject: [PATCH] miss --- program/punishment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/program/punishment.py b/program/punishment.py index fdb33e4..ae3129f 100644 --- a/program/punishment.py +++ b/program/punishment.py @@ -4,6 +4,7 @@ import asyncio from pyrogram import Client, filters from pyrogram.types import Message +from pyrogram.errors import FloodWait from driver.filters import command from driver.decorators import sudo_users_only from driver.database.dbchat import get_served_chats @@ -161,7 +162,7 @@ async def ungban_global(c: Client, message: Message): await message.reply_text( "I can't ungban myself because i can't be gbanned !" ) - elif user_id in sudoers: + elif user_id in SUDO_USERS: await message.reply_text("Sudo users can't be gbanned/ungbanned !") else: is_gbanned = await is_gbanned_user(user_id) @@ -169,4 +170,4 @@ async def ungban_global(c: Client, message: Message): await message.reply_text("This user already un-gbanned") else: await remove_gban_user(user_id) - await message.reply_text("✅ This user has ungbanned.") \ No newline at end of file + await message.reply_text("✅ This user has ungbanned.")