Ensure it's NEVER None, even if None is in the dict
This commit is contained in:
parent
d031459349
commit
110720f278
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue