From 005523bc91d0873486c5f7dbdc192609c99b3f8c Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Thu, 10 Nov 2011 13:20:47 +0000 Subject: [PATCH] glee protection --- run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.js b/run.js index 1c9a0d1..1b65e5b 100644 --- a/run.js +++ b/run.js @@ -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); }