Skip to content

Commit

Permalink
Replace [p] with clean prefix in install messages (#3592)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Feb 28, 2020
1 parent 9ea7262 commit 4e4420a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redbot/cogs/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ async def _repo_add(
else:
await ctx.send(_("Repo `{name}` successfully added.").format(name=name))
if repo.install_msg:
await ctx.send(repo.install_msg.replace("[p]", ctx.prefix))
await ctx.send(repo.install_msg.replace("[p]", ctx.clean_prefix))

@repo.command(name="delete", aliases=["remove", "del"], usage="<repo_name>")
async def _repo_del(self, ctx: commands.Context, repo: Repo) -> None:
Expand Down Expand Up @@ -754,7 +754,7 @@ async def _cog_installrev(
await self.send_pagified(ctx, f"{message}{deprecation_notice}\n---")
for cog in installed_cogs:
if cog.install_msg:
await ctx.send(cog.install_msg.replace("[p]", ctx.prefix))
await ctx.send(cog.install_msg.replace("[p]", ctx.clean_prefix))

@cog.command(name="uninstall", usage="<cogs>")
async def _cog_uninstall(self, ctx: commands.Context, *cogs: InstalledCog) -> None:
Expand Down

0 comments on commit 4e4420a

Please sign in to comment.