Exemple #1
0
 /// <summary>
 /// Executes a remote command
 /// </summary>
 /// <param name="command"></param>
 public static void ExecuteRemoteCommand(Connection source, RemoteCommand command)
 {
     Irc.InjectConsoleMessage(ControlCharacter.Deserialize(command.Command));
     RemoteCommandResponse response = new RemoteCommandResponse();
     response.ID = command.ID;
     source.Send(response);
 }
Exemple #2
0
 /// <summary>
 /// Triggers when a connection to a GUI enters the ConnectionState.Ready state
 /// </summary>
 /// <param name="connection">The connection that entered the ConnectionState.Ready state</param>
 public void OnReady(Connection connection)
 {
     log("Connection entering ready state, sending settings");
     connection.Send(Settings.CreateSettings());
     log("GUI has successfully connected!");
 }