diff --git a/modules/quotes/quotes.js b/modules/quotes/quotes.js index 4f3e86c..b694bea 100644 --- a/modules/quotes/quotes.js +++ b/modules/quotes/quotes.js @@ -16,7 +16,7 @@ var quotes = function(dbot) { var ref = this.internalAPI.cleanRef(quoteRefs[0].replace(/^~~/,'').replace(/~~$/,'').trim()); if(ref === '-nicks-') { dbot.api.users.getRandomChannelUser(server, channel, function(user) { - quote = quote.replace('~~' + ref + '~~', randomNick); + quote = quote.replace('~~' + ref + '~~', user.currentNick); this.internalAPI.interpolatedQuote(server, channel, key, quote, callback); }.bind(this)); } else {