mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
Fixed bug in ignoring channels/servers
Admins and mods were being ignored too
This commit is contained in:
parent
6d25bfa131
commit
235b4bed70
4
red.py
4
red.py
@ -282,7 +282,9 @@ def user_allowed(message):
|
||||
if not message.channel.is_private:
|
||||
server = message.server
|
||||
names = (settings.get_server_admin(server),settings.get_server_mod(server))
|
||||
if None not in map(lambda name: discord.utils.get(author.roles,name=name),names):
|
||||
results = map(lambda name: discord.utils.get(author.roles,name=name),names)
|
||||
for r in results:
|
||||
if r != None:
|
||||
return True
|
||||
|
||||
if author.id in mod.blacklist_list:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user