1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-28 20:02:20 -05:00

Server: Fix typo in addConversation()

This commit is contained in:
Sebastian Kaspari 2011-03-15 23:59:49 +01:00
parent 78a47ca17b
commit 7563437343
5 changed files with 8 additions and 8 deletions

View File

@ -784,7 +784,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
if (query == null) { if (query == null) {
// Open a query if there's none yet // Open a query if there's none yet
query = new Query(nicknameWithoutPrefix); query = new Query(nicknameWithoutPrefix);
server.addConversationl(query); server.addConversation(query);
Intent intent = Broadcast.createConversationIntent( Intent intent = Broadcast.createConversationIntent(
Broadcast.CONVERSATION_NEW, Broadcast.CONVERSATION_NEW,

View File

@ -60,7 +60,7 @@ public class QueryHandler extends BaseHandler
} }
query = new Query(params[1]); query = new Query(params[1]);
server.addConversationl(query); server.addConversation(query);
Intent intent = Broadcast.createConversationIntent( Intent intent = Broadcast.createConversationIntent(
Broadcast.CONVERSATION_NEW, Broadcast.CONVERSATION_NEW,

View File

@ -224,7 +224,7 @@ public class IRCConnection extends PircBot
if (conversation == null) { if (conversation == null) {
// Open a query if there's none yet // Open a query if there's none yet
conversation = new Query(sender); conversation = new Query(sender);
server.addConversationl(conversation); server.addConversation(conversation);
conversation.addMessage(message); conversation.addMessage(message);
Intent intent = Broadcast.createConversationIntent( Intent intent = Broadcast.createConversationIntent(
@ -341,7 +341,7 @@ public class IRCConnection extends PircBot
{ {
if (sender.equalsIgnoreCase(getNick())) { if (sender.equalsIgnoreCase(getNick())) {
// We joined a new channel // We joined a new channel
server.addConversationl(new Channel(target)); server.addConversation(new Channel(target));
Intent intent = Broadcast.createConversationIntent( Intent intent = Broadcast.createConversationIntent(
Broadcast.CONVERSATION_NEW, Broadcast.CONVERSATION_NEW,
@ -593,7 +593,7 @@ public class IRCConnection extends PircBot
// Open a query if there's none yet // Open a query if there's none yet
conversation = new Query(sender); conversation = new Query(sender);
conversation.addMessage(message); conversation.addMessage(message);
server.addConversationl(conversation); server.addConversation(conversation);
Intent intent = Broadcast.createConversationIntent( Intent intent = Broadcast.createConversationIntent(
Broadcast.CONVERSATION_NEW, Broadcast.CONVERSATION_NEW,

View File

@ -319,7 +319,7 @@ public class Server
* *
* @param conversation The conversation to add * @param conversation The conversation to add
*/ */
public void addConversationl(Conversation conversation) public void addConversation(Conversation conversation)
{ {
conversations.put(conversation.getName().toLowerCase(), conversation); conversations.put(conversation.getName().toLowerCase(), conversation);
} }

View File

@ -141,14 +141,14 @@ public class ServerTest extends TestCase
{ {
Channel channel = new Channel("#yaaic"); Channel channel = new Channel("#yaaic");
server.addConversationl(channel); server.addConversation(channel);
assertEquals(2, server.getConversations().size()); assertEquals(2, server.getConversations().size());
assertNotNull(server.getConversation("#yaaic")); assertNotNull(server.getConversation("#yaaic"));
// ignore case // ignore case
assertNotNull(server.getConversation("#yAAic")); assertNotNull(server.getConversation("#yAAic"));
server.addConversationl(new Query("pocmo")); server.addConversation(new Query("pocmo"));
assertEquals(3, server.getConversations().size()); assertEquals(3, server.getConversations().size());
// test order // test order