From eb35db1074e5cf456088aacc965831fed491621b Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 9 Dec 2015 20:11:33 +0000 Subject: [PATCH] oops --- modules/tell/tell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tell/tell.js b/modules/tell/tell.js index 5e77a92..422ac8d 100644 --- a/modules/tell/tell.js +++ b/modules/tell/tell.js @@ -30,7 +30,7 @@ var tell = function(dbot) { } tells[user.id].push({ - 'channel': event.channel, + 'channel': event.channel.name, 'message': event.message, 'from': event.user }); // i feel like i'm data structure challenged today @@ -47,7 +47,7 @@ var tell = function(dbot) { if(_.has(tells, event.rUser.id)) { var done = []; _.each(tells[event.rUser.id], function(tell, i) { - if(event.channel == tell.channel) { + if(event.channel.name == tell.channel) { event.reply('Dear ' + event.user + ', ' + tell.from + ' left you a message: ' + tell.message); tells[event.rUser.id].splice(i, 1); }