Merge pull request #14 from n3hima/master

Fixed case sensitivity issue with the ~link command
This commit is contained in:
Luke Slater 2012-01-11 10:05:06 -08:00
commit ed02557500

View File

@ -153,7 +153,7 @@ var quotes = function(dbot) {
}, },
'~link': function(data, params) { '~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.'); dbot.say(data.channel, 'Syntax error. Commence incineration.');
} else { } else {
dbot.say(data.channel, 'Link to "'+params[1]+'" - http://nc.no.de:443/quotes/'+params[1]); dbot.say(data.channel, 'Link to "'+params[1]+'" - http://nc.no.de:443/quotes/'+params[1]);