1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

stripped tag of whitespace off the ends

This commit is contained in:
phxntxm 2016-07-12 11:30:47 -05:00
parent 026e4ed4ae
commit a7430a9dbd

View file

@ -143,7 +143,7 @@ class Core:
async def add_tag(self, ctx, *result: str):
"""Use this to add a new tag that can be used in this server
Format to add a tag is !tag add <tag> - <result>"""
result = ' '.join(result)
result = ' '.join(result).strip()
tag = result[0:result.find('-')]
result = result[result.find('-') + 2:]
cursor = config.getCursor()