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:
parent
78a47ca17b
commit
7563437343
@ -784,7 +784,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
if (query == null) {
|
||||
// Open a query if there's none yet
|
||||
query = new Query(nicknameWithoutPrefix);
|
||||
server.addConversationl(query);
|
||||
server.addConversation(query);
|
||||
|
||||
Intent intent = Broadcast.createConversationIntent(
|
||||
Broadcast.CONVERSATION_NEW,
|
||||
|
@ -60,7 +60,7 @@ public class QueryHandler extends BaseHandler
|
||||
}
|
||||
|
||||
query = new Query(params[1]);
|
||||
server.addConversationl(query);
|
||||
server.addConversation(query);
|
||||
|
||||
Intent intent = Broadcast.createConversationIntent(
|
||||
Broadcast.CONVERSATION_NEW,
|
||||
|
@ -224,7 +224,7 @@ public class IRCConnection extends PircBot
|
||||
if (conversation == null) {
|
||||
// Open a query if there's none yet
|
||||
conversation = new Query(sender);
|
||||
server.addConversationl(conversation);
|
||||
server.addConversation(conversation);
|
||||
conversation.addMessage(message);
|
||||
|
||||
Intent intent = Broadcast.createConversationIntent(
|
||||
@ -341,7 +341,7 @@ public class IRCConnection extends PircBot
|
||||
{
|
||||
if (sender.equalsIgnoreCase(getNick())) {
|
||||
// We joined a new channel
|
||||
server.addConversationl(new Channel(target));
|
||||
server.addConversation(new Channel(target));
|
||||
|
||||
Intent intent = Broadcast.createConversationIntent(
|
||||
Broadcast.CONVERSATION_NEW,
|
||||
@ -593,7 +593,7 @@ public class IRCConnection extends PircBot
|
||||
// Open a query if there's none yet
|
||||
conversation = new Query(sender);
|
||||
conversation.addMessage(message);
|
||||
server.addConversationl(conversation);
|
||||
server.addConversation(conversation);
|
||||
|
||||
Intent intent = Broadcast.createConversationIntent(
|
||||
Broadcast.CONVERSATION_NEW,
|
||||
|
@ -319,7 +319,7 @@ public class Server
|
||||
*
|
||||
* @param conversation The conversation to add
|
||||
*/
|
||||
public void addConversationl(Conversation conversation)
|
||||
public void addConversation(Conversation conversation)
|
||||
{
|
||||
conversations.put(conversation.getName().toLowerCase(), conversation);
|
||||
}
|
||||
|
@ -141,14 +141,14 @@ public class ServerTest extends TestCase
|
||||
{
|
||||
Channel channel = new Channel("#yaaic");
|
||||
|
||||
server.addConversationl(channel);
|
||||
server.addConversation(channel);
|
||||
assertEquals(2, server.getConversations().size());
|
||||
assertNotNull(server.getConversation("#yaaic"));
|
||||
|
||||
// ignore case
|
||||
assertNotNull(server.getConversation("#yAAic"));
|
||||
|
||||
server.addConversationl(new Query("pocmo"));
|
||||
server.addConversation(new Query("pocmo"));
|
||||
assertEquals(3, server.getConversations().size());
|
||||
|
||||
// test order
|
||||
|
Loading…
Reference in New Issue
Block a user