Corrected error where a blank option would be submitted
This commit is contained in:
parent
ff82f250d3
commit
55bb3ad2c5
|
@ -59,8 +59,10 @@ class Strawpoll:
|
|||
match_multi = multi.findall(options)
|
||||
if match_single:
|
||||
options = match_single
|
||||
options = [option for option in options if option]
|
||||
elif match_multi:
|
||||
options = match_multi[0].splitlines()
|
||||
options = [option for option in options if option]
|
||||
else:
|
||||
await self.bot.say("Please provide options for a new strawpoll! Use {}help if you do not know the format".format(ctx.prefix))
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue