From b89f9e7065eac6f803fd9eaaea03a1675074674f Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 17 Jun 2012 12:53:52 +0100 Subject: [PATCH] Fix the regex for ~addoption and ~rmoption --- modules/poll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/poll.js b/modules/poll.js index edd376c..084b4e8 100644 --- a/modules/poll.js +++ b/modules/poll.js @@ -115,8 +115,8 @@ var poll = function(dbot) { } }; commands['~newpoll'].regex = [/~newpoll ([^ ]+) \[options=([^ ]+)\] (.+)/, 4]; - commands['~addoption'].regex = [/~addoption ([^ ]+)/, 2]; - commands['~rmoption'].regex = [/~rmoption ([^ ]+)/, 2]; + commands['~addoption'].regex = [/~addoption ([^ ]+) ([^ ]+)/, 3]; + commands['~rmoption'].regex = [/~rmoption ([^ ]+) ([^ ]+)/, 3]; commands['~vote'].regex = [/~vote ([^ ]+) ([^ ]+)/, 3]; commands['~pdesc'].regex = [/~pdesc ([^ ]+)/, 2];