forked from GitHub/dbot
Merge branch 'master' of github.com:reality/depressionbot
This commit is contained in:
commit
11decc1e60
5
run.js
5
run.js
@ -106,6 +106,10 @@ DBot.prototype.reloadModules = function() {
|
|||||||
} 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)) {
|
||||||
|
this.say(data.channel, data.user +
|
||||||
|
' is banned from using this command. Commence incineration.');
|
||||||
|
} else {
|
||||||
q[1] = q[1].trim();
|
q[1] = q[1].trim();
|
||||||
key = this.cleanNick(q[1])
|
key = this.cleanNick(q[1])
|
||||||
if(this.db.quoteArrs.hasOwnProperty(key)) {
|
if(this.db.quoteArrs.hasOwnProperty(key)) {
|
||||||
@ -115,6 +119,7 @@ DBot.prototype.reloadModules = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user