1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 19:02:17 -05:00

Server: setAutoJoinChannels(), getAutojoinChannels()

This commit is contained in:
Sebastian Kaspari 2010-04-25 11:21:25 +02:00
parent d5b5b7b7b5
commit 4a03127366

View File

@ -43,6 +43,7 @@ public class Server
private Identity identity;
private LinkedHashMap<String, Conversation> conversations = new LinkedHashMap<String, Conversation>();
private ArrayList<String> autoJoinChannels;
private int status = Status.DISCONNECTED;
private String selected = "";
@ -234,6 +235,26 @@ public class Server
return status;
}
/**
* Set list of channels to auto join after connect
*
* @param channels List of channel names
*/
public void setAutoJoinChannels(ArrayList<String> autoJoinChannels)
{
this.autoJoinChannels = autoJoinChannels;
}
/**
* Get list of channels to auto join after connect
*
* @return List of channel names
*/
public ArrayList<String> getAutoJoinChannels()
{
return autoJoinChannels;
}
/**
* Is disconnected?
*