This commit is contained in:
levina 2022-01-31 16:00:02 +07:00 committed by GitHub
parent 16a3e6f23c
commit 3e2fd8a8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)