Fix spaces in mention error

pull/47/head
bobloy 6 years ago committed by GitHub
parent fa5898f771
commit 81a5ca53cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -293,7 +293,7 @@ class CCRole(Cog):
if cmd["targeted"]: if cmd["targeted"]:
try: try:
target = discord.utils.get( 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 except IndexError: # .split() return list of len<2
target = None target = None

Loading…
Cancel
Save