mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
don't allow whitespace-only categories for ~qadd
This commit is contained in:
parent
25b6099fbd
commit
4e6393dd9a
@ -218,7 +218,7 @@ var commands = function(dbot) {
|
|||||||
commands['~qsearch'].regex = [/^~qsearch ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3];
|
commands['~qsearch'].regex = [/^~qsearch ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3];
|
||||||
commands['~rm'].regex = [/^~rm ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3];
|
commands['~rm'].regex = [/^~rm ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3];
|
||||||
commands['~rmlast'].regex = [/^~rmlast ([\d\w\s-]*)/, 2];
|
commands['~rmlast'].regex = [/^~rmlast ([\d\w\s-]*)/, 2];
|
||||||
commands['~qadd'].regex = [/^~qadd ([\d\w\s-]+?)[ ]?=[ ]?(.+)$/, 3];
|
commands['~qadd'].regex = [/^~qadd ([\d\w-]+[\d\w\s-]*)[ ]?=[ ]?(.+)$/, 3];
|
||||||
commands['~link'].regex = [/^~link ([\d\w\s-]*)/, 2];
|
commands['~link'].regex = [/^~link ([\d\w\s-]*)/, 2];
|
||||||
|
|
||||||
commands['~rmconfirm'].access = 'moderator';
|
commands['~rmconfirm'].access = 'moderator';
|
||||||
|
Loading…
Reference in New Issue
Block a user