1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 10:52:16 -05:00

Server: Added setConnectCommands(), getConnectCommands()

This commit is contained in:
Sebastian Kaspari 2010-04-25 12:06:39 +02:00
parent d03ad54e79
commit 53bc6c3bd8

View File

@ -44,6 +44,7 @@ public class Server
private LinkedHashMap<String, Conversation> conversations = new LinkedHashMap<String, Conversation>();
private ArrayList<String> autoJoinChannels;
private ArrayList<String> connectCommands;
private int status = Status.DISCONNECTED;
private String selected = "";
@ -255,6 +256,26 @@ public class Server
return autoJoinChannels;
}
/**
* Set commands to execute after connect
*
* @param commands List of commands
*/
public void setConnectCommands(ArrayList<String> connectCommands)
{
this.connectCommands = connectCommands;
}
/**
* Get commands to execute after connect
*
* @return List of commands
*/
public ArrayList<String> getConnectCommands()
{
return connectCommands;
}
/**
* Is disconnected?
*