forked from GitHub/dbot
Merge pull request #14 from n3hima/master
Fixed case sensitivity issue with the ~link command
This commit is contained in:
commit
ed02557500
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user