3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00

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];
return {