[commands] Prepend mention prefixes in commands.when_mentioned_or

This commit is contained in:
zephyrkul
2018-08-28 23:50:57 -04:00
committed by Rapptz
parent 15ca9294e1
commit b9ef80b0d0
+1 -1
View File
@@ -77,7 +77,7 @@ def when_mentioned_or(*prefixes):
"""
def inner(bot, msg):
r = list(prefixes)
r.extend(when_mentioned(bot, msg))
r = when_mentioned(bot, msg) + r
return r
return inner