[commands] Prepend mention prefixes in commands.when_mentioned_or

This commit is contained in:
zephyrkul 2018-08-28 20:51:45 -06:00 committed by Rapptz
parent 15ca9294e1
commit b9ef80b0d0

View File

@ -77,7 +77,7 @@ def when_mentioned_or(*prefixes):
""" """
def inner(bot, msg): def inner(bot, msg):
r = list(prefixes) r = list(prefixes)
r.extend(when_mentioned(bot, msg)) r = when_mentioned(bot, msg) + r
return r return r
return inner return inner