Provides data for events that are raised when a CTCP message or notice is sent or received.
Inheritance: System.EventArgs
Esempio n. 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);
            }
        }
Esempio n. 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);
 }
Esempio n. 4
0
 private static void ctcpClient2_ActionReceived(object sender, CtcpMessageEventArgs e)
 {
     if (ctcpClient2ActionReceivedEvent != null)
         ctcpClient2ActionReceivedEvent.Set();
 }
Esempio n. 5
0
        private static void ctcpClient1_ActionReceived(object sender, CtcpMessageEventArgs e)
        {
            if (e.Source.NickName == ircClient2.LocalUser.NickName)
                client2ReceivedActionText = e.Text;

            if (ctcpClient1ActionReceivedEvent != null)
                ctcpClient1ActionReceivedEvent.Set();
        }
Esempio n. 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);
 }
Esempio n. 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);
                }
            }
        }
Esempio n. 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();
        }