Make VPN kick message broadly applicable.

This commit is contained in:
Jonathan Halterman 2016-09-08 03:53:56 -07:00 committed by GitHub
parent 256d12c1d4
commit 7fb554bd2b

View File

@ -385,12 +385,12 @@ public final class User {
if (!userType.isAllowed()) { if (!userType.isAllowed()) {
proposedAccess = ImmutableMap.of( proposedAccess = ImmutableMap.of(
"allowed", false, "allowed", false,
"message", "You cannot join MineHQ from a VPN." "message", "You cannot join the server from a VPN."
); );
} else if (BannedAsn.findById(maxMindResult.getTraits().getAsn()) != null) { } else if (BannedAsn.findById(maxMindResult.getTraits().getAsn()) != null) {
proposedAccess = ImmutableMap.of( proposedAccess = ImmutableMap.of(
"allowed", false, "allowed", false,
"message", "You cannot join MineHQ from this ISP." "message", "You cannot join the server from this ISP."
); );
} }
@ -689,4 +689,4 @@ public final class User {
usersCollection.replaceOne(new Document("_id", id), this, SyncUtils.vertxWrap(new MongoToVoidMongoCallback<>(callback))); usersCollection.replaceOne(new Document("_id", id), this, SyncUtils.vertxWrap(new MongoToVoidMongoCallback<>(callback)));
} }
} }