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:
parent
d6eb37b226
commit
0ad2f46abd
5
run.js
5
run.js
@ -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));
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user