3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

fix eat cheese for twistington

This commit is contained in:
reality 2013-08-30 02:47:44 +00:00
parent 8b8400f437
commit 3ce44418e7

View File

@ -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 {