mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
accept - in categories everywhere
This commit is contained in:
parent
11decc1e60
commit
d46294c576
@ -5,7 +5,7 @@ var quotes = function(dbot) {
|
|||||||
|
|
||||||
var commands = {
|
var commands = {
|
||||||
'~q': function(data, params) {
|
'~q': function(data, params) {
|
||||||
var q = data.message.valMatch(/^~q ([\d\w\s]*)/, 2);
|
var q = data.message.valMatch(/^~q ([\d\w\s-]*)/, 2);
|
||||||
if(q) {
|
if(q) {
|
||||||
q[1] = q[1].trim();
|
q[1] = q[1].trim();
|
||||||
key = q[1].toLowerCase();
|
key = q[1].toLowerCase();
|
||||||
@ -45,7 +45,7 @@ var quotes = function(dbot) {
|
|||||||
|
|
||||||
'~rmlast': function(data, params) {
|
'~rmlast': function(data, params) {
|
||||||
if(rmAllowed == true || data.user == dbot.admin) {
|
if(rmAllowed == true || data.user == dbot.admin) {
|
||||||
var q = data.message.valMatch(/^~rmlast ([\d\w\s]*)/, 2);
|
var q = data.message.valMatch(/^~rmlast ([\d\w\s-]*)/, 2);
|
||||||
if(q) {
|
if(q) {
|
||||||
q[1] = q[1].trim()
|
q[1] = q[1].trim()
|
||||||
key = q[1].toLowerCase();
|
key = q[1].toLowerCase();
|
||||||
@ -80,7 +80,7 @@ var quotes = function(dbot) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'~qcount': function(data, params) {
|
'~qcount': function(data, params) {
|
||||||
var q = data.message.valMatch(/^~qcount ([\d\w\s]*)/, 2);
|
var q = data.message.valMatch(/^~qcount ([\d\w\s-]*)/, 2);
|
||||||
if(q) {
|
if(q) {
|
||||||
q[1] = q[1].trim();
|
q[1] = q[1].trim();
|
||||||
key = q[1].toLowerCase();
|
key = q[1].toLowerCase();
|
||||||
@ -125,7 +125,7 @@ var quotes = function(dbot) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'~qset': function(data, params) {
|
'~qset': function(data, params) {
|
||||||
var q = data.message.valMatch(/^~qset ([\d\w\s]*)=(.+)$/, 3);
|
var q = data.message.valMatch(/^~qset ([\d\w\s-]*)=(.+)$/, 3);
|
||||||
if(q) {
|
if(q) {
|
||||||
q[1] = q[1].trim();
|
q[1] = q[1].trim();
|
||||||
key = q[1].toLowerCase();
|
key = q[1].toLowerCase();
|
||||||
|
2
run.js
2
run.js
@ -104,7 +104,7 @@ DBot.prototype.reloadModules = function() {
|
|||||||
this.save();
|
this.save();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var q = data.message.valMatch(/^~([\d\w\s]*)/, 2);
|
var q = data.message.valMatch(/^~([\d\w\s-]*)/, 2);
|
||||||
if(q) {
|
if(q) {
|
||||||
if(this.db.bans['*'].include(data.user)) {
|
if(this.db.bans['*'].include(data.user)) {
|
||||||
this.say(data.channel, data.user +
|
this.say(data.channel, data.user +
|
||||||
|
Loading…
Reference in New Issue
Block a user