1
0
Fork 0
mirror of synced 2024-05-03 04:02:28 +12:00

Ensure it's NEVER None, even if None is in the dict

This commit is contained in:
phxntxm 2019-01-28 00:29:59 -06:00
parent d031459349
commit 110720f278

View file

@ -97,4 +97,4 @@ db_opts = {'host': db_host, 'database': db_name, 'port': db_port, 'user': db_use
def command_prefix(bot, message):
if not message.guild:
return default_prefix
return bot.cache.prefixes.get(message.guild.id, default_prefix)
return bot.cache.prefixes.get(message.guild.id) or default_prefix