From cfbb71faa6a4e6b7fe5bdd0d2dc91d0ed5395d60 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 13 Apr 2016 22:25:51 +0000 Subject: [PATCH] that should learn it? --- modules/reddit/reddit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/reddit/reddit.js b/modules/reddit/reddit.js index 916c477..fb31be8 100644 --- a/modules/reddit/reddit.js +++ b/modules/reddit/reddit.js @@ -53,8 +53,8 @@ var reddit = function(dbot) { this.api.getNewPosts(feed.subreddit, checkTimes[channel.id][feed.subreddit], function(err, posts) { if(!err && posts.length > 0) { _.each(posts, function(post) { - if(_.has(this.colours, post.subreddit)) { - post.subreddit = this.colours[post.subreddit] + post.subreddit + "\u0003"; + if(_.has(this.config.colours, post.subreddit)) { + post.subreddit = this.config.colours[post.subreddit] + post.subreddit + "\u0003"; } dbot.say(channel.server, channel.channel, dbot.t('about_new_post', { 'title': _.unescape(post.title.trim()),