Fix spaces in mention error

This commit is contained in:
bobloy 2018-12-26 15:33:48 -05:00 committed by GitHub
parent fa5898f771
commit 81a5ca53cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,7 +293,7 @@ class CCRole(Cog):
if cmd["targeted"]:
try:
target = discord.utils.get(
message.guild.members, mention=message.content.split()[1]
message.guild.members, mention=message.content.split(maxsplit=1)[1]
)
except IndexError: # .split() return list of len<2
target = None