3
0
mirror of https://github.com/reality/dbot.git synced 2025-02-25 09:50:40 +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.commands[params[0]](data, params);
this.save(); 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 { } else {
var q = data.message.valMatch(/^~([\d\w\s]*)/, 2); var q = data.message.valMatch(/^~([\d\w\s]*)/, 2);
if(q) { if(q) {
@ -115,6 +119,7 @@ DBot.prototype.reloadModules = function() {
} }
} }
} }
}
}.bind(this)); }.bind(this));
}; };