From e19acd2d63a33539d509d3b06ce3f54033f950f8 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 22 May 2014 02:35:52 -0400 Subject: [PATCH] fix enforcement of media limit --- lib/channel/playlist.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/channel/playlist.js b/lib/channel/playlist.js index 205c609a..7b436324 100644 --- a/lib/channel/playlist.js +++ b/lib/channel/playlist.js @@ -359,8 +359,8 @@ PlaylistModule.prototype.handleQueue = function (user, data) { var maxlength = 0; if (!perms.canExceedMaxLength(user)) { - if (this.channel.modules.opts) { - maxlength = this.channel.modules.opts.get("maxlength"); + if (this.channel.modules.options) { + maxlength = this.channel.modules.options.get("maxlength"); } } @@ -1187,8 +1187,8 @@ PlaylistModule.prototype.handleQueuePlaylist = function (user, data) { var temp = data.temp || !perms.canAddNonTemp(user); var maxlength = 0; if (!perms.canExceedMaxLength(user)) { - if (this.channel.modules.opts) { - maxlength = this.channel.modules.opts.get("maxlength"); + if (this.channel.modules.options) { + maxlength = this.channel.modules.options,get("maxlength"); } } var qdata = {