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

Fix the regex for ~addoption and ~rmoption

This commit is contained in:
Luke Slater 2012-06-17 12:53:52 +01:00
parent 8837cd7b98
commit b89f9e7065

View File

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