Exemplo n.º 1
0
 /// <summary>
 ///     Send a CTCP message to another client.
 /// </summary>
 /// <param name="target">The user to which the CTCP command will be delivered.</param>
 /// <param name="command">The CTCP command to send.</param>
 /// <param name="isResponse">
 ///     Indicates whether the CTCP message is a response to a command that was received. This parameter
 ///     is important for preventing an infinite back-and-forth loop between two clients.
 /// </param>
 public void SendCtcp(IrcTarget target, CtcpCommand command, bool isResponse)
 {
     Send(isResponse ? "NOTICE" : "PRIVMSG", target, command.ToString());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Send a CTCP message to another client.
 /// </summary>
 /// <param name="target">The user to which the CTCP command will be delivered.</param>
 /// <param name="command">The CTCP command to send.</param>
 /// <param name="isResponse">Indicates whether the CTCP message is a response to a command that was received. This parameter
 /// is important for preventing an infinite back-and-forth loop between two clients.</param>
 public async Task SendCtcpAsync(IrcTarget target, CtcpCommand command, bool isResponse)
 {
     await SendAsync(isResponse? "NOTICE" : "PRIVMSG", target, command.ToString());
 }