diff options
author | Kyomotoi <[email protected]> | 2023-01-06 19:25:56 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2023-01-06 19:25:56 +0800 |
commit | e5aece46ced6c9558641b9f33436c304d7236ff4 (patch) | |
tree | abcab9dc4b6c8ab6630ba4ce52dd0f1544b434ab | |
parent | 47dd646e04417124d478e9799e3dee1794de0cd7 (diff) | |
download | ATRI-e5aece46ced6c9558641b9f33436c304d7236ff4.tar.gz ATRI-e5aece46ced6c9558641b9f33436c304d7236ff4.tar.bz2 ATRI-e5aece46ced6c9558641b9f33436c304d7236ff4.zip |
🐛 修复接受撤回信息无法取消
-rw-r--r-- | ATRI/plugins/essential/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/essential/__init__.py b/ATRI/plugins/essential/__init__.py index da59ef8..32af510 100644 --- a/ATRI/plugins/essential/__init__.py +++ b/ATRI/plugins/essential/__init__.py @@ -171,7 +171,7 @@ recall_event = plugin.on_notice("撤回事件", "撤回事件检测") @recall_event.handle() async def _(bot: Bot, event: FriendRecallNoticeEvent): - if event.is_tome() and not _acc_recall: + if not event.is_tome() and not _acc_recall: return try: @@ -199,7 +199,7 @@ async def _(bot: Bot, event: FriendRecallNoticeEvent): @recall_event.handle() async def _(bot: Bot, event: GroupRecallNoticeEvent): - if event.is_tome() and not _acc_recall: + if not event.is_tome() and not _acc_recall: return try: |