diff --git a/src/org/yaaic/adapter/DeckAdapter.java b/src/org/yaaic/adapter/DeckAdapter.java index 57b2001..b9fdc6a 100644 --- a/src/org/yaaic/adapter/DeckAdapter.java +++ b/src/org/yaaic/adapter/DeckAdapter.java @@ -103,7 +103,7 @@ public class DeckAdapter extends BaseAdapter public int getPositionByName(String name) { for (int i = 0; i < conversations.size(); i++) { - if (conversations.get(i).getName().equals(name)) { + if (conversations.get(i).getName().equalsIgnoreCase(name)) { return i; } } diff --git a/src/org/yaaic/model/Conversation.java b/src/org/yaaic/model/Conversation.java index c5b4a5a..01e08ef 100644 --- a/src/org/yaaic/model/Conversation.java +++ b/src/org/yaaic/model/Conversation.java @@ -61,7 +61,7 @@ public abstract class Conversation { this.buffer = Collections.synchronizedList(new LinkedList()); this.history = Collections.synchronizedList(new LinkedList()); - this.name = name; + this.name = name.toLowerCase(); } /** diff --git a/src/org/yaaic/model/Server.java b/src/org/yaaic/model/Server.java index 84c3675..1b4fe2e 100644 --- a/src/org/yaaic/model/Server.java +++ b/src/org/yaaic/model/Server.java @@ -229,7 +229,7 @@ public class Server */ public Conversation getConversation(String name) { - return conversations.get(name); + return conversations.get(name.toLowerCase()); } /** @@ -239,7 +239,7 @@ public class Server */ public void addConversationl(Conversation conversation) { - conversations.put(conversation.getName(), conversation); + conversations.put(conversation.getName().toLowerCase(), conversation); } /** @@ -249,7 +249,7 @@ public class Server */ public void removeConversation(String name) { - conversations.remove(name); + conversations.remove(name.toLowerCase()); } /**