diff --git a/modules/quotes.js b/modules/quotes.js index 4bb6e37..84c7b07 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -10,7 +10,7 @@ var quotes = function(dbot) { key = q[1].trim().toLowerCase(); if(quotes.hasOwnProperty(key)) { var output = quotes[key].random(); - if(output == "glee") { + if(output.indexOf("glee") != -1) { dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :glee off dickhead'); } else { dbot.say(data.channel, key + ': ' + output); diff --git a/run.js b/run.js index 80dde79..1c9a0d1 100644 --- a/run.js +++ b/run.js @@ -103,7 +103,7 @@ DBot.prototype.reloadModules = function() { key = q[1].trim().toLowerCase(); if(this.db.quoteArrs.hasOwnProperty(key)) { var output = this.db.quoteArrs[key].random(); - if(output == "glee") { + if(output.indexOf("glee") != -1) { dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :glee off dickhead'); } else { this.say(data.channel, key + ': ' + output);