fix enforcement of media limit

This commit is contained in:
Erik 2014-05-22 02:35:52 -04:00
parent 72c8b4f4fb
commit e19acd2d63
1 changed files with 4 additions and 4 deletions

View File

@ -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 = {