mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
Fixed case-sensitivity with ~link
This commit is contained in:
parent
9b00578a60
commit
d5526cfe4b
@ -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