forked from GitHub/dbot
oops
This commit is contained in:
parent
eebf1d9680
commit
890103e4ab
@ -47,8 +47,10 @@ var tell = function(dbot) {
|
|||||||
if(_.has(tells, event.rUser.id)) {
|
if(_.has(tells, event.rUser.id)) {
|
||||||
var done = [];
|
var done = [];
|
||||||
_.each(tells[event.rUser.id], function(tell, i) {
|
_.each(tells[event.rUser.id], function(tell, i) {
|
||||||
|
if(event.channel == tell.channel) {
|
||||||
event.reply('Dear ' + event.user + ', ' + tell.from + ' left you a message: ' + tell.message);
|
event.reply('Dear ' + event.user + ', ' + tell.from + ' left you a message: ' + tell.message);
|
||||||
tells[event.rUser.id].splice(i, 1);
|
tells[event.rUser.id].splice(i, 1);
|
||||||
|
}
|
||||||
}); // i disgust me
|
}); // i disgust me
|
||||||
tells[event.rUser.id] = _.without(tells[event.rUser.id], done);
|
tells[event.rUser.id] = _.without(tells[event.rUser.id], done);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user