Patch to filter, now correctly watches same lobby name regardless of case.
This commit is contained in:
parent
cea15612da
commit
7a67306436
@ -10,6 +10,7 @@ import org.bson.conversions.Bson;
|
|||||||
import javax.print.Doc;
|
import javax.print.Doc;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.ScheduledExecutorService;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
@ -170,7 +171,7 @@ public class delegationServices {
|
|||||||
BasicDBObject privateKey = new BasicDBObject();
|
BasicDBObject privateKey = new BasicDBObject();
|
||||||
BasicDBObject lobbyPostPermissionResponse = new BasicDBObject();
|
BasicDBObject lobbyPostPermissionResponse = new BasicDBObject();
|
||||||
BasicDBObject statusUpdate = new BasicDBObject();
|
BasicDBObject statusUpdate = new BasicDBObject();
|
||||||
if (!lobbyNameList.contains(lobbyPostName)) {
|
if (!lobbyNameList.toString().replaceAll(" ","").toLowerCase(Locale.ROOT).contains(lobbyPostName.replaceAll(" ","").toLowerCase(Locale.ROOT))) {
|
||||||
//Get existing lobby information from the index service, use these to append later ^
|
//Get existing lobby information from the index service, use these to append later ^
|
||||||
while (genStatus == false) {
|
while (genStatus == false) {
|
||||||
int length = 50;
|
int length = 50;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user