From 30cd5d499dda5a612e9d05732ae079532b91bc4d Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 14 Jun 2012 23:36:52 +0100 Subject: [PATCH] fixed the regex on ~newpoll --- modules/poll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/poll.js b/modules/poll.js index 31700ae..ee602eb 100644 --- a/modules/poll.js +++ b/modules/poll.js @@ -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 {