mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
glee protection
This commit is contained in:
parent
47ddeb8b50
commit
005523bc91
2
run.js
2
run.js
@ -104,7 +104,7 @@ DBot.prototype.reloadModules = function() {
|
|||||||
if(this.db.quoteArrs.hasOwnProperty(key)) {
|
if(this.db.quoteArrs.hasOwnProperty(key)) {
|
||||||
var output = this.db.quoteArrs[key].random();
|
var output = this.db.quoteArrs[key].random();
|
||||||
if(output.indexOf("glee") != -1) {
|
if(output.indexOf("glee") != -1) {
|
||||||
dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :glee off dickhead');
|
this.instance.send('KICK ' + data.channel + ' ' + data.user + ' :glee off dickhead');
|
||||||
} else {
|
} else {
|
||||||
this.say(data.channel, key + ': ' + output);
|
this.say(data.channel, key + ': ' + output);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user