From d5526cfe4b4a8e03b8b967524e9412ea6bca78f4 Mon Sep 17 00:00:00 2001 From: Joe MacMahon Date: Sun, 8 Jan 2012 21:58:40 +0000 Subject: [PATCH] Fixed case-sensitivity with ~link --- modules/quotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quotes.js b/modules/quotes.js index 95739f8..229f70c 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -153,7 +153,7 @@ var quotes = function(dbot) { }, '~link': function(data, params) { - if(params[1] === undefined || !quotes.hasOwnProperty(params[1])) { + if(params[1] === undefined || !quotes.hasOwnProperty(params[1].toLowerCase())) { dbot.say(data.channel, 'Syntax error. Commence incineration.'); } else { dbot.say(data.channel, 'Link to "'+params[1]+'" - http://nc.no.de:443/quotes/'+params[1]);