Remove default contact config

This commit is contained in:
Calvin Montgomery 2016-11-01 22:44:26 -07:00
parent bfad626b2d
commit 9302a271d0
4 changed files with 23 additions and 22 deletions

View file

@ -90,13 +90,7 @@ var defaults = {
channels: ["^(.*?[-_])?admin(istrator)?([-_].*)?$", "^(.*?[-_])?owner([-_].*)?$"],
pagetitles: []
},
"contacts": [
{
name: "calzoneman",
title: "Developer",
email: "cyzon@cytu.be"
}
],
"contacts": [],
"aggressive-gc": false,
playlist: {
"max-items": 4000,
@ -390,6 +384,11 @@ function preprocessConfig(cfg) {
"for more information on registering a client ID");
}
// Remove calzoneman from contact config (old default)
cfg.contacts = cfg.contacts.filter(contact => {
return contact.name !== 'calzoneman';
});
return cfg;
}