golden's invite idea

This commit is contained in:
AngelRionCervi 2020-04-11 19:03:08 +02:00
parent a9917096c9
commit 57be4bd141

View file

@ -37,16 +37,16 @@ const GATHER_CONFIGS = [
},*/ },*/
{ {
type: "invitational", type: "invitational",
icon: '/inviteGather.png', icon: "/inviteGather.png",
name: "Invitational Gather", name: "Invitational Gather",
description: "Join on ensl.org/teams/949", description: "You must be on a nsl team to join",
// Grant invite if on list // Grand invite if on any nsl team
membershipTest: function (user) { membershipTest: function (user) {
return InvitationalGather.list.some(m => m.id === user.id); return user.team ? true : false;
}, },
serverMembershipTest: function (server) { serverMembershipTest: function (server) {
return server.name.toLowerCase().indexOf("promod") === -1; return server.name.toLowerCase().indexOf("promod") === -1;
} },
} }
// { // {
// type: "casual", // type: "casual",