lower case interpolation whatsits

This commit is contained in:
Luke Slater 2012-03-27 14:31:56 +01:00
parent e9b6b2d0f6
commit acb427a24e

View File

@ -18,7 +18,7 @@ var quotes = function(dbot) {
var thisRef; var thisRef;
while(quoteRefs && (thisRef = quoteRefs.shift()) !== undefined) { while(quoteRefs && (thisRef = quoteRefs.shift()) !== undefined) {
var cleanRef = dbot.cleanNick(thisRef.replace(/^~~/,'').replace(/~~$/,'').trim()); var cleanRef = dbot.cleanNick(thisRef.replace(/^~~/,'').replace(/~~$/,'').trim().toLowerCase());
if (quotes.hasOwnProperty(cleanRef)) { if (quotes.hasOwnProperty(cleanRef)) {
quoteTree.push(key); quoteTree.push(key);
quoteString = quoteString.replace("~~" + cleanRef + "~~", quoteString = quoteString.replace("~~" + cleanRef + "~~",