From 39090fbe403fc360cc1268e2db50bedf3581582a Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Tue, 20 May 2014 20:48:19 -0700 Subject: [PATCH] Fix check for channel being registered --- lib/channel/playlist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/channel/playlist.js b/lib/channel/playlist.js index e87f016e..67b5f5f8 100644 --- a/lib/channel/playlist.js +++ b/lib/channel/playlist.js @@ -379,7 +379,7 @@ PlaylistModule.prototype.queueStandard = function (user, data) { this.channel.activeLock.lock(); this.semaphore.queue(function (lock) { var lib = self.channel.modules.library; - if (lib && self.is(Flags.C_REGISTERED) && !util.isLive(data.type)) { + if (lib && self.channel.is(Flags.C_REGISTERED) && !util.isLive(data.type)) { lib.getItem(data.id, function (err, item) { if (err && err !== "Item not in library") { error(err+"");