fixed the regex on ~newpoll

This commit is contained in:
Luke Slater 2012-06-14 23:36:52 +01:00
parent 66554605e7
commit 30cd5d499d

View File

@ -58,7 +58,7 @@ var poll = function(dbot) {
} }
}; };
commands['~newpoll'].regex = [/~newpoll ([^ ]+) \[options=(\[^ ]+)\] (.+)/, 4]; commands['~newpoll'].regex = [/~newpoll ([^ ]+) \[options=([^ ]+)\] (.+)/, 4];
commands['~vote'].regex = [/~vote ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3]; commands['~vote'].regex = [/~vote ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3];
return { return {