3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-18 00:22:35 +01:00

Merge branch 'master' of github.com:reality/depressionbot

This commit is contained in:
Luke Slater 2011-12-12 14:06:18 +00:00
commit 11decc1e60

5
run.js
View File

@ -106,6 +106,10 @@ DBot.prototype.reloadModules = function() {
} else {
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 {
q[1] = q[1].trim();
key = this.cleanNick(q[1])
if(this.db.quoteArrs.hasOwnProperty(key)) {
@ -115,6 +119,7 @@ DBot.prototype.reloadModules = function() {
}
}
}
}
}.bind(this));
};