mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
修复 restricts
无法触发洪水限制的逻辑
This commit is contained in:
parent
d2bb329c87
commit
6062d9d796
@ -149,9 +149,9 @@ def restricts(filters_chat: ChatType = filters.ALL, return_data=None, try_delete
|
||||
except BadRequest as error:
|
||||
Log.warning("删除消息失败", error)
|
||||
return return_data
|
||||
|
||||
if count >= 1:
|
||||
context.user_data["usage_count"] = count - 1
|
||||
else:
|
||||
if count >= 1:
|
||||
context.user_data["usage_count"] = count - 1
|
||||
|
||||
context.user_data["command_time"] = time.time()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user