Fix move log

This commit is contained in:
Calvin Montgomery 2013-08-06 23:52:23 -04:00
parent 4f86610773
commit db0fee5692
1 changed files with 3 additions and 2 deletions

View File

@ -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", {