fix ban bug

This commit is contained in:
Luke Slater 2011-12-09 15:30:29 +00:00
parent 0ad2f46abd
commit c9f4995d50

10
run.js
View File

@ -104,12 +104,12 @@ DBot.prototype.reloadModules = function() {
this.save();
}
} else {
if(this.db.bans['*'].include(data.user)) {
this.say(data.channel, data.user +
var q = data.message.valMatch(/^~([\d\w\s]*)/, 2);
if(q) {
if(this.db.bans['*'].include(data.user)) {
this.say(data.channel, data.user +
' is banned from using this command. Commence incineration.');
} else {
var q = data.message.valMatch(/^~([\d\w\s]*)/, 2);
if(q) {
} else {
q[1] = q[1].trim();
key = this.cleanNick(q[1])
if(this.db.quoteArrs.hasOwnProperty(key)) {