Exemplo n.º 1
0
        private void CtcpClient_TimeResponseReceived(object sender, CtcpTimeResponseReceivedEventArgs e)
        {
            var network = NetworkFromIrcClient(sender as StandardIrcClient);

            BroadcastMessageToNetwork(network, new Message()
            {
                From = e.User.NickName,
                Text = $"Time received: {e.DateTime}",
                Type = MessageType.CTCP
            });
            NotifyNetworkChange(network);
        }
Exemplo n.º 2
0
 private static void ctcpClient2_TimeResponseReceived(object sender, CtcpTimeResponseReceivedEventArgs e)
 {
     if (ctcpClient2TimeResponseReceivedEvent != null)
         ctcpClient2TimeResponseReceivedEvent.Set();
 }
Exemplo n.º 3
0
        private static void ctcpClient1_TimeResponseReceived(object sender, CtcpTimeResponseReceivedEventArgs e)
        {
            if (e.User.NickName == ircClient2.LocalUser.NickName)
                client2ReceivedTimeInfo = e.DateTime;

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