mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-16 14:05:07 -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 LinkedHashMap<String, Conversation> conversations = new LinkedHashMap<String, Conversation>();
|
||||||
private ArrayList<String> autoJoinChannels;
|
private ArrayList<String> autoJoinChannels;
|
||||||
|
private ArrayList<String> connectCommands;
|
||||||
|
|
||||||
private int status = Status.DISCONNECTED;
|
private int status = Status.DISCONNECTED;
|
||||||
private String selected = "";
|
private String selected = "";
|
||||||
@ -255,6 +256,26 @@ public class Server
|
|||||||
return autoJoinChannels;
|
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?
|
* Is disconnected?
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user