3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

ban on thing

This commit is contained in:
Luke Slater 2011-12-09 01:35:39 +00:00
parent d6eb37b226
commit 0ad2f46abd

5
run.js
View File

@ -103,6 +103,10 @@ DBot.prototype.reloadModules = function() {
this.commands[params[0]](data, params);
this.save();
}
} else {
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) {
@ -115,6 +119,7 @@ DBot.prototype.reloadModules = function() {
}
}
}
}
}.bind(this));
};