🎨 Fix the mandatory verification not working

This commit is contained in:
洛水居室 2023-10-12 09:13:42 +08:00
parent ebbb2b71f1
commit a77ebf4b3a
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -20,7 +20,9 @@ class VerificationPlugins(Plugin):
message = update.effective_message
logger.info("用户 %s[%s] 发出verify命令", user.full_name, user.id)
try:
uid, gt, challenge = await self.challenge_system.create_challenge(user.id, context.args is not None)
uid, gt, challenge = await self.challenge_system.create_challenge(
user.id, context.args is not None and not len(context.args) >= 1
)
except ChallengeSystemException as exc:
await message.reply_text(exc.message)
return