1
0
Fork 0
mirror of synced 2024-09-29 08:51:53 +13:00

Corrected what was checked in our prefix method

This commit is contained in:
phxntxm 2016-08-31 14:13:09 -05:00
parent ce7151612e
commit 0f21cf5155

View file

@ -90,7 +90,7 @@ def command_prefix(bot, message):
# So assume it's in cache, or it doesn't exist
# If the prefix does exist in the database and isn't in our cache; too bad, something has messed up
# But it is not worth a query for every single message the bot detects, to fix
prefix = cache['prefix'].get(message.server.id)
prefix = cache['prefix'].values.get(message.server.id)
return prefix or default_prefix