From db0fee5692bc930068b9b44fc46b2c29a332d48a Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Tue, 6 Aug 2013 23:52:23 -0400 Subject: [PATCH] Fix move log --- channel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/channel.js b/channel.js index 5f16ae81..901de7b3 100644 --- a/channel.js +++ b/channel.js @@ -1437,9 +1437,10 @@ Channel.prototype.move = function(data, user) { var fromit = chan.playlist.items.find(data.from); var afterit = chan.playlist.items.find(data.after); + var aftertitle = afterit && afterit.media ? afterit.media.title : ""; if(fromit) { - chan.logger.log("### " + user.name + " moved " + fromit.media.title + - + afterit ? " after " + afterit.media.title : ""); + chan.logger.log("### " + user.name + " moved " + fromit.media.title + + (aftertitle ? " after " + aftertitle : "")); } chan.sendAll("moveVideo", {