Exemple #1
0
        private void CtcpClient_ActionReceived(object sender, CtcpMessageEventArgs e)
        {
            var network = NetworkFromIrcClient(sender as StandardIrcClient);

            BroadcastMessageToNetwork(network, new Message()
            {
                From = e.Source.NickName,
                Text = e.Text,
                Type = MessageType.CTCP
            });
            NotifyNetworkChange(network);
        }
 private static void ctcpClient2_ActionReceived(object sender, CtcpMessageEventArgs e)
 {
     if (ctcpClient2ActionReceivedEvent != null)
         ctcpClient2ActionReceivedEvent.Set();
 }
        private static void ctcpClient1_ActionReceived(object sender, CtcpMessageEventArgs e)
        {
            if (e.Source.NickName == ircClient2.LocalUser.NickName)
                client2ReceivedActionText = e.Text;

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