Fix typeerror

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

View File

@ -1309,7 +1309,7 @@ Channel.prototype.tryDequeue = function(user, data) {
if(typeof data !== "number")
return;
var plitem = this.playlist.find(data);
var plitem = this.playlist.items.find(data);
if(plitem && plitem.media)
this.logger.log("### " + user.name + " deleted " + plitem.media.title);
this.dequeue(data);
@ -1435,8 +1435,8 @@ Channel.prototype.move = function(data, user) {
moveby = data.moveby;
var fromit = chan.playlist.find(data.from);
var afterit = chan.playlist.find(data.after);
var fromit = chan.playlist.items.find(data.from);
var afterit = chan.playlist.items.find(data.after);
if(fromit) {
chan.logger.log("### " + user.name + " moved " + fromit.media.title +
+ afterit ? " after " + afterit.media.title : "");