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