git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4332da2
)
More easily assign roles with spaces.
author
CMDR furrycat
<elite@furrycat.net>
Wed, 9 Jan 2019 10:35:45 +0000
(10:35 +0000)
committer
CMDR furrycat
<elite@furrycat.net>
Wed, 9 Jan 2019 10:35:45 +0000
(10:35 +0000)
plugin/role/role.py
patch
|
blob
|
history
diff --git
a/plugin/role/role.py
b/plugin/role/role.py
index
f2fe270
..
3690140
100644
(file)
--- a/
plugin/role/role.py
+++ b/
plugin/role/role.py
@@
-289,7
+289,7
@@
class Role(DBConnection):
await bot.say(message.channel, 'role?')
return
- role = await self.find_role(message,
args[0]
)
+ role = await self.find_role(message,
' '.join(args)
)
if not role:
return
@@
-315,7
+315,7
@@
class Role(DBConnection):
await bot.say(message.channel, 'role?')
return
- role = await self.find_role(message,
args[0]
)
+ role = await self.find_role(message,
' '.join(args)
)
if not role:
return