From 890103e4abbd7d9465b7664d0bce412c9286ed56 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 9 Dec 2015 19:00:39 +0000 Subject: [PATCH] oops --- modules/tell/tell.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/tell/tell.js b/modules/tell/tell.js index 0855332..5e77a92 100644 --- a/modules/tell/tell.js +++ b/modules/tell/tell.js @@ -47,8 +47,10 @@ var tell = function(dbot) { if(_.has(tells, event.rUser.id)) { var done = []; _.each(tells[event.rUser.id], function(tell, i) { - event.reply('Dear ' + event.user + ', ' + tell.from + ' left you a message: ' + tell.message); - tells[event.rUser.id].splice(i, 1); + if(event.channel == tell.channel) { + event.reply('Dear ' + event.user + ', ' + tell.from + ' left you a message: ' + tell.message); + tells[event.rUser.id].splice(i, 1); + } }); // i disgust me tells[event.rUser.id] = _.without(tells[event.rUser.id], done); }