3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

glee protection

This commit is contained in:
Luke Slater 2011-11-10 13:20:47 +00:00
parent 47ddeb8b50
commit 005523bc91

2
run.js
View File

@ -104,7 +104,7 @@ DBot.prototype.reloadModules = function() {
if(this.db.quoteArrs.hasOwnProperty(key)) {
var output = this.db.quoteArrs[key].random();
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 {
this.say(data.channel, key + ': ' + output);
}