Beispiel #1
0
        private void CtcpClient_PingResponseReceived(object sender, CtcpPingResponseReceivedEventArgs e)
        {
            var network = NetworkFromIrcClient(sender as StandardIrcClient);

            network.Messages.Add(new Message()
            {
                From = e.User.NickName,
                Text = $"Ping time: {e.PingTime}",
                Type = MessageType.CTCP
            });
            NotifyNetworkChange(network);
        }
 private static void ctcpClient2_PingResponseReceived(object sender, CtcpPingResponseReceivedEventArgs e)
 {
     if (ctcpClient2PingResponseReceivedEvent != null)
         ctcpClient2PingResponseReceivedEvent.Set();
 }
        private static void ctcpClient1_PingResponseReceived(object sender, CtcpPingResponseReceivedEventArgs e)
        {
            if (e.User.NickName == ircClient2.LocalUser.NickName)
                client2PingTime = e.PingTime;

            if (ctcpClient1PingResponseReceivedEvent != null)
                ctcpClient1PingResponseReceivedEvent.Set();
        }