[commands] Fix lack of space in when_mentioned

This commit is contained in:
Rapptz 2017-04-24 00:23:23 -04:00
parent 6188397fc9
commit 37681dd0ea

View File

@ -41,7 +41,7 @@ from .formatter import HelpFormatter
def when_mentioned(bot, msg):
"""A callable that implements a command prefix equivalent
to being mentioned, e.g. ``@bot ``."""
return [bot.user.mention, '<@!%s>' % bot.user.id]
return [bot.user.mention + ' ', '<@!%s> ' % bot.user.id]
def when_mentioned_or(*prefixes):
"""A callable that implements when mentioned or other prefixes provided.