Fix move log

This commit is contained in:
Calvin Montgomery 2013-08-06 23:52:23 -04:00
parent 4f86610773
commit db0fee5692

View file

@ -1437,9 +1437,10 @@ Channel.prototype.move = function(data, user) {
var fromit = chan.playlist.items.find(data.from); var fromit = chan.playlist.items.find(data.from);
var afterit = chan.playlist.items.find(data.after); var afterit = chan.playlist.items.find(data.after);
var aftertitle = afterit && afterit.media ? afterit.media.title : "";
if(fromit) { if(fromit) {
chan.logger.log("### " + user.name + " moved " + fromit.media.title + chan.logger.log("### " + user.name + " moved " + fromit.media.title
+ afterit ? " after " + afterit.media.title : ""); + (aftertitle ? " after " + aftertitle : ""));
} }
chan.sendAll("moveVideo", { chan.sendAll("moveVideo", {