🐛 PMC - 修复会挑战自己的bug

This commit is contained in:
Sam 2022-07-03 11:38:28 +08:00 committed by GitHub
parent ae72f7d858
commit b76f24ca12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,7 @@
},
{
"name": "pmcaptcha",
"version": "2.106",
"version": "2.107",
"section": "chat",
"maintainer": "cloudreflection,01101sam",
"size": "54.6 kb",

View File

@ -2153,6 +2153,7 @@ class Rule:
return (self.user.id in (347437156, 583325201, 1148248480) or # Skip for PGM/PMC Developers
self.msg.from_user.is_contact or
self.msg.from_user.is_verified or
self.user.is_self or
self.msg.chat.type == ChatType.BOT or
setting.is_verified(self.user.id))