From 81a5ca53cc301c14eed7cc6df549fa60663be6e8 Mon Sep 17 00:00:00 2001 From: bobloy Date: Wed, 26 Dec 2018 15:33:48 -0500 Subject: [PATCH] Fix spaces in mention error --- ccrole/ccrole.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccrole/ccrole.py b/ccrole/ccrole.py index c71eb40..149deb7 100644 --- a/ccrole/ccrole.py +++ b/ccrole/ccrole.py @@ -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