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:
parent
8837cd7b98
commit
b89f9e7065
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user