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); }
private static void ctcpClient2_TimeResponseReceived(object sender, CtcpTimeResponseReceivedEventArgs e) { if (ctcpClient2TimeResponseReceivedEvent != null) ctcpClient2TimeResponseReceivedEvent.Set(); }
private static void ctcpClient1_TimeResponseReceived(object sender, CtcpTimeResponseReceivedEventArgs e) { if (e.User.NickName == ircClient2.LocalUser.NickName) client2ReceivedTimeInfo = e.DateTime; if (ctcpClient1TimeResponseReceivedEvent != null) ctcpClient1TimeResponseReceivedEvent.Set(); }