Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
54fcb8e
1
Parent(s):
36e5ee7
Update flood.py
Browse files- 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 |
-
|
177 |
-
|
178 |
-
|
|
|
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]:
|