1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Allow PM's to not be ignored

This commit is contained in:
Phxntxm 2017-04-16 20:58:20 -05:00
parent 7f48f11586
commit d485f64f25

View file

@ -66,6 +66,8 @@ def is_owner(ctx):
return ctx.message.author.id in config.owner_ids
def should_ignore(message):
if message.guild is None:
return False
try:
server_settings = config.cache.get('server_settings').values
ignored = [x for x in server_settings if x['server_id'] == str(