0
0
Fork 0

Only intersect guilds that have the history site enabled

This commit is contained in:
Oliver-Akins 2021-09-29 22:47:55 -06:00
parent fcda612970
commit f22e74b599

View file

@ -14,6 +14,12 @@ export default {
let registeredGuilds = []; let registeredGuilds = [];
for (var gid in config.guilds) { for (var gid in config.guilds) {
// Don't intersect with guilds that have the history site disabled
if (!config.guilds[gid].history_site) {
continue;
}
if (userGuilds.includes(gid)) { if (userGuilds.includes(gid)) {
registeredGuilds.push(gid); registeredGuilds.push(gid);
}; };