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:
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.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));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user