[Core, Alias, Customcom] Moved bot checks to user_allowed (#454)

More selfbot friendliness for modded Reds
This commit is contained in:
Caleb Johnson
2016-11-13 20:36:38 -06:00
committed by Twentysix
parent 36216a4058
commit 70afff5b5f
3 changed files with 5 additions and 7 deletions

6
red.py
View File

@@ -141,11 +141,11 @@ def user_allowed(message):
author = message.author
mod = bot.get_cog('Mod')
if author.bot:
if author.bot or author == bot.user:
return False
mod = bot.get_cog('Mod')
if mod is not None:
if settings.owner == author.id:
return True