mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-29 20:32:22 -05:00
Server: Added setConnectCommands(), getConnectCommands()
This commit is contained in:
parent
d03ad54e79
commit
53bc6c3bd8
@ -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?
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user