From 57be4bd141dacfc407d3fa9fb7a810de1dca88a0 Mon Sep 17 00:00:00 2001 From: AngelRionCervi Date: Sat, 11 Apr 2020 19:03:08 +0200 Subject: [PATCH 1/2] golden's invite idea --- lib/gather/gather_pool.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/gather/gather_pool.js b/lib/gather/gather_pool.js index ff49409..7ae3239 100644 --- a/lib/gather/gather_pool.js +++ b/lib/gather/gather_pool.js @@ -37,16 +37,16 @@ const GATHER_CONFIGS = [ },*/ { type: "invitational", - icon: '/inviteGather.png', - name: "Invitational Gather", - description: "Join on ensl.org/teams/949", - // Grant invite if on list - membershipTest: function (user) { - return InvitationalGather.list.some(m => m.id === user.id); - }, - serverMembershipTest: function (server) { - return server.name.toLowerCase().indexOf("promod") === -1; - } + icon: "/inviteGather.png", + name: "Invitational Gather", + description: "You must be on a nsl team to join", + // Grand invite if on any nsl team + membershipTest: function (user) { + return user.team ? true : false; + }, + serverMembershipTest: function (server) { + return server.name.toLowerCase().indexOf("promod") === -1; + }, } // { // type: "casual", From cabfbbc2eac210328ea1180c911250bc1b868f17 Mon Sep 17 00:00:00 2001 From: AngelRionCervi Date: Wed, 15 Apr 2020 22:05:59 +0200 Subject: [PATCH 2/2] best commit ever git add . --- lib/gather/gather_pool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gather/gather_pool.js b/lib/gather/gather_pool.js index 7ae3239..68880fa 100644 --- a/lib/gather/gather_pool.js +++ b/lib/gather/gather_pool.js @@ -40,9 +40,9 @@ const GATHER_CONFIGS = [ icon: "/inviteGather.png", name: "Invitational Gather", description: "You must be on a nsl team to join", - // Grand invite if on any nsl team + // Grant invite if on any nsl team membershipTest: function (user) { - return user.team ? true : false; + return user.team !== undefined; }, serverMembershipTest: function (server) { return server.name.toLowerCase().indexOf("promod") === -1;