1
0
Fork 0
mirror of synced 2024-06-02 02:34:32 +12:00

Stripping the prefix to ensure no white space provided

This commit is contained in:
phxntxm 2016-10-12 16:48:38 -05:00
parent aedfcd9956
commit 7dbebc8a44

View file

@ -307,7 +307,7 @@ class Mod:
async def prefix(self, ctx, *, prefix: str):
"""This command can be used to set a custom prefix per server"""
r_filter = {'server_id': ctx.message.server.id}
if prefix.lower == "none":
if prefix.lower.strip() == "none":
prefix = None
entry = {'server_id': ctx.message.server.id,