mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +00:00
* GUI: increased ignore list max size from 100 to 500;
This commit is contained in:
parent
e170f724d4
commit
5578437dde
3 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ public final class IgnoreList {
|
||||||
+ "<br>\\ignore username - add username to ignore list (they won't be able to chat or join to your new game)."
|
+ "<br>\\ignore username - add username to ignore list (they won't be able to chat or join to your new game)."
|
||||||
+ "<br>\\unignore username - remove a username from your ignore list on this server.</font>";
|
+ "<br>\\unignore username - remove a username from your ignore list on this server.</font>";
|
||||||
|
|
||||||
public static final int MAX_IGNORE_LIST_SIZE = 100;
|
public static final int MAX_IGNORE_LIST_SIZE = 500;
|
||||||
public static final Set<ChatMessage.MessageType> IGNORED_MESSAGE_TYPES
|
public static final Set<ChatMessage.MessageType> IGNORED_MESSAGE_TYPES
|
||||||
= ImmutableSet.of(ChatMessage.MessageType.TALK,
|
= ImmutableSet.of(ChatMessage.MessageType.TALK,
|
||||||
ChatMessage.MessageType.WHISPER_FROM);
|
ChatMessage.MessageType.WHISPER_FROM);
|
||||||
|
|
|
@ -63,12 +63,12 @@ public class IgnoreListTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void ignoreMaxSize() throws Exception {
|
public void ignoreMaxSize() throws Exception {
|
||||||
for (int i = 0; i < 100; i++) {
|
for (int i = 0; i < 500; i++) {
|
||||||
IgnoreList.ignore("test.com.xx", "" + i);
|
IgnoreList.ignore("test.com.xx", "" + i);
|
||||||
}
|
}
|
||||||
final String r = IgnoreList.ignore("test.com.xx", "lul");
|
final String r = IgnoreList.ignore("test.com.xx", "lul");
|
||||||
assertEquals(r, "Your ignore list is too big (max 100), remove a user to be able to add a new one.");
|
assertEquals(r, "Your ignore list is too big (max 500), remove a user to be able to add a new one.");
|
||||||
assertThat(IgnoreList.getIgnoredUsers("test.com.xx").size(), is(100));
|
assertThat(IgnoreList.getIgnoredUsers("test.com.xx").size(), is(500));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -517,7 +517,7 @@ public class ModalDoubleFacesCardsTest extends CardTestPlayerBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test_Single_GlasspoolMimic_FromNonHand() {
|
public void test_Single_GlasspoolMimic_PutToHand() {
|
||||||
// https://github.com/magefree/mage/issues/7174
|
// https://github.com/magefree/mage/issues/7174
|
||||||
|
|
||||||
// Glasspool Mimic
|
// Glasspool Mimic
|
||||||
|
|
Loading…
Reference in a new issue