From e6b50b248d0e7b681c7bd2fefece63d0066d90d9 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 17 Mar 2012 13:42:15 +0000 Subject: [PATCH] need to call interpolated quote with params --- modules/quotes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/quotes.js b/modules/quotes.js index 5ae7e4c..387787b 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -47,7 +47,7 @@ var quotes = function(dbot) { q[1] = q[1].trim(); key = q[1].toLowerCase(); if(quotes.hasOwnProperty(key)) { - dbot.say(data.channel, q[1] + ': ' + interpolatedQuote(key)); + dbot.say(data.channel, q[1] + ': ' + interpolatedQuote(key, params)); } else { dbot.say(data.channel, 'Nobody loves ' + q[1]); } @@ -228,11 +228,11 @@ var quotes = function(dbot) { '~rq': function(data, params) { var rQuote = Object.keys(quotes).random(); - dbot.say(data.channel, rQuote + ': ' + interpolatedQuote(rQuote)); + dbot.say(data.channel, rQuote + ': ' + interpolatedQuote(rQuote, params)); }, '~d': function(data, params) { - dbot.say(data.channel, data.user + ': ' + interpolatedQuote(dbot.name)); + dbot.say(data.channel, data.user + ': ' + interpolatedQuote(dbot.name, params)); }, '~link': function(data, params) {