🛠 PMC - Disable markdown generate function

This commit is contained in:
Sam 2022-07-04 12:17:35 +08:00 committed by GitHub
parent c63191b146
commit 8f898c141d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@
},
{
"name": "pmcaptcha",
"version": "2.13",
"version": "2.14",
"section": "chat",
"maintainer": "cloudreflection,01101sam",
"size": "20 kb",

View File

@ -2572,8 +2572,8 @@ async def chat_listener(_, msg: Message):
description=f"{lang('plugin_desc')}\n{(lang('check_usage') % code(f',{cmd_name} h'))}")
async def cmd_entry(_, msg: Message):
cmd = Command(msg.from_user, msg)
if msg.parameter[0] == "markdown":
print(cmd._generate_markdown())
# if msg.parameter[0] == "markdown":
# print(cmd._generate_markdown())
return await msg.delete()
result, err_code, extra = await cmd._run_command()
if not result: