This commit is contained in:
calzoneman 2016-03-23 23:04:58 -07:00
parent c5c40a0386
commit 319c52911a
1 changed files with 3 additions and 0 deletions

View File

@ -1169,6 +1169,9 @@ PlaylistModule.prototype.handleClean = function (user, msg, meta) {
var cmd = args.shift();
var target = generateTargetRegex(args.join(" "));
this.channel.logger.log("[playlist] " + user.getName() + " used " + cmd +
" with target regex: " + target);
var cleanfn;
if (cmd === "/clean") {
cleanfn = function (item) { return target.test(item.queueby); };