1
0
Fork 0
mirror of synced 2024-06-29 03:30:57 +12:00

Corrected error where a blank option would be submitted

This commit is contained in:
Phxntxm 2016-08-13 22:18:43 -05:00
parent ff82f250d3
commit 55bb3ad2c5

View file

@ -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