Skip to content

Commit

Permalink
Update flood.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgojoof6eyes authored Jan 3, 2025
1 parent f0662f6 commit cabc551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Powers/plugins/flood.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ async def reverse_callbacks(c: Gojo, q: CallbackQuery):
if not q.from_user:
return q.answer("Looks like you are not an user 👀")
user = await q.message.chat.get_member(q.from_user.id)
if not user.privileges and q.from_user.id not in SUPPORT_STAFF:
if (user and not user.privileges) and (q.from_user.id not in SUPPORT_STAFF):
return await q.answer(
"You don't have enough permission to do this!\nStay in your limits!",
show_alert=True,
Expand Down

0 comments on commit cabc551

Please sign in to comment.