Provides data for events that are raised when a CTCP message or notice is sent or received.
Inheritance: System.EventArgs
Beispiel #1
0
        /// <summary>
        ///     Raises the <see cref="ActionSent" /> event.
        /// </summary>
        /// <param name="e">The <see cref="CtcpMessageEventArgs" /> instance containing the event data.</param>
        protected virtual void OnActionSent(CtcpMessageEventArgs e)
        {
            var handler = ActionSent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Raises the <see cref="ActionReceived"/> event.
        /// </summary>
        /// <param name="e">The <see cref="CtcpMessageEventArgs"/> instance containing the event data.</param>
        protected virtual void OnActionReceived(CtcpMessageEventArgs e)
        {
            var handler = this.ActionReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 /// <summary>
 /// Raises the <see cref="ActionReceived"/> event.
 /// </summary>
 /// <param name="e">The <see cref="CtcpMessageEventArgs"/> instance containing the event data.</param>
 protected virtual void OnActionReceived(CtcpMessageEventArgs e)
 {
     var handler = this.ActionReceived;
     if (handler != null)
         handler(this, e);
 }
 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();
        }
Beispiel #6
0
 /// <summary>
 ///     Raises the <see cref="ActionSent" /> event.
 /// </summary>
 /// <param name="e">The <see cref="CtcpMessageEventArgs" /> instance containing the event data.</param>
 protected virtual void OnActionSent(CtcpMessageEventArgs e)
 {
     var handler = ActionSent;
     if (handler != null)
         handler(this, e);
 }
Beispiel #7
0
        void _ctcpClient_ActionReceived(object sender, CtcpMessageEventArgs e)
        {
            var source = e.Source as IrcUser;

            if (source != null)
            {
                var sourceChannel = sender as IrcChannel;

                if (sourceChannel != null)
                {
                    var user = new User
                    {
                        NickName = source.NickName,
                        HostName = source.HostName
                    };

                    OnPublicActionReceived(user, sourceChannel.Name, e.Text);
                }
                else
                {
                    var user = new User
                    {
                        NickName = source.NickName,
                        HostName = source.HostName
                    };

                    OnPrivateActionReceived(user, e.Text);
                }
            }
        }
Beispiel #8
0
        public void ctcpClient_ActionReceived(object sender, CtcpMessageEventArgs e)
        {
            if (e.Source.NickName == thisclient.LocalUser.NickName)
                clientReceivedActionText = e.Text;

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