[Core] Check for coowners in the db

This commit is contained in:
Twentysix 2017-04-27 10:24:29 +02:00
parent 36b19de9da
commit cc1d7b2b59

View File

@ -34,7 +34,7 @@ class Red(commands.Bot):
async def is_owner(self, user, allow_coowners=True): async def is_owner(self, user, allow_coowners=True):
if allow_coowners: if allow_coowners:
if user.id in self.settings.coowners: if user.id in self.db.get_global("coowners", []):
return True return True
return await super().is_owner(user) return await super().is_owner(user)