Captain Ezio commited on
Commit
54fcb8e
·
1 Parent(s): 36e5ee7

Update flood.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/flood.py +4 -3
Powers/plugins/flood.py CHANGED
@@ -173,9 +173,10 @@ async def callbacks(c: Gojo, q: CallbackQuery):
173
  return
174
  c_id = q.message.chat.id
175
  is_flood = Flood.is_chat(c_id)
176
- saction = is_flood[2]
177
- slimit = is_flood[0]
178
- swithin = is_flood[1]
 
179
  user = q.from_user.id
180
  user_status = (await q.message.chat.get_member(q.from_user.id)).status
181
  if user in SUPPORT_STAFF or user_status in [CMS.OWNER, CMS.ADMINISTRATOR]:
 
173
  return
174
  c_id = q.message.chat.id
175
  is_flood = Flood.is_chat(c_id)
176
+ if is_flood:
177
+ saction = is_flood[2]
178
+ slimit = is_flood[0]
179
+ swithin = is_flood[1]
180
  user = q.from_user.id
181
  user_status = (await q.message.chat.get_member(q.from_user.id)).status
182
  if user in SUPPORT_STAFF or user_status in [CMS.OWNER, CMS.ADMINISTRATOR]: