diff --git a/modules/quotes.js b/modules/quotes.js index 387787b..06c708b 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -32,6 +32,7 @@ var quotes = function(dbot) { var thisParam; while(paramRefs && (thisParam = paramRefs.shift()) !== undefined) { + thisParam = thisParam[1]; if(thisParam < params.length) { quoteString = quoteString.replace("~~$" + + "~~", params[thisParam]); }