Skip to content

Commit

Permalink
Fix bug in mention prefix for nickname mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
kyb3r authored Jan 17, 2019
1 parent d6529aa commit eefece7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async def get_context(self, message, *, cls=commands.Context):
if self._skip_check(message.author.id, self.user.id):
return ctx

prefixes = [self.prefix, f'<@{bot.user.id}> ', f'<@!{bot.user.id}>']
prefixes = [self.prefix, f'<@{bot.user.id}> ', f'<@!{bot.user.id}> ']

invoked_prefix = discord.utils.find(view.skip_string, prefixes)
if invoked_prefix is None:
Expand Down

0 comments on commit eefece7

Please sign in to comment.