mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fix safety of `[p]repo list` (#6494)
This commit is contained in:
parent
8ad9c55d50
commit
3888f09cfa
@ -655,7 +655,11 @@ class Downloader(commands.Cog):
|
|||||||
joined += "- **{}:** {}\n - {}\n".format(
|
joined += "- **{}:** {}\n - {}\n".format(
|
||||||
repo.name,
|
repo.name,
|
||||||
repo.short or "",
|
repo.short or "",
|
||||||
"<{}>".format(repo.url),
|
(
|
||||||
|
f"<{repo.clean_url}>"
|
||||||
|
if repo.clean_url.startswith(("http://", "https://"))
|
||||||
|
else repo.clean_url
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
for page in pagify(joined, ["\n"], shorten_by=16):
|
for page in pagify(joined, ["\n"], shorten_by=16):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user