Ursprung
41c0117d06
Commit
089113f0c0
@ -80,8 +80,15 @@ public class SearchPart extends SWCommand {
|
|||||||
String current = query[i];
|
String current = query[i];
|
||||||
if (searchMapper.containsKey(current)) {
|
if (searchMapper.containsKey(current)) {
|
||||||
if (searchMapper.get(current) == null) {
|
if (searchMapper.get(current) == null) {
|
||||||
if (current.equals("-public")) {
|
switch (current) {
|
||||||
|
case "-public":
|
||||||
userId = 0;
|
userId = 0;
|
||||||
|
break;
|
||||||
|
case "-ignoreCase":
|
||||||
|
isIgnoreCase.set(true);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
throw new IllegalStateException("Unexpected value: " + current);
|
||||||
}
|
}
|
||||||
} else if (i + 1 < query.length) {
|
} else if (i + 1 < query.length) {
|
||||||
int finalI = i;
|
int finalI = i;
|
||||||
@ -114,9 +121,6 @@ public class SearchPart extends SWCommand {
|
|||||||
}
|
}
|
||||||
predicates.add(node -> node.getOwner() != steamwarUser1.getId());
|
predicates.add(node -> node.getOwner() != steamwarUser1.getId());
|
||||||
break;
|
break;
|
||||||
case "-ignoreCase":
|
|
||||||
isIgnoreCase.set(true);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
throw new IllegalStateException("Unexpected value: " + current);
|
throw new IllegalStateException("Unexpected value: " + current);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren