Provides data for the IrcClient.PingReceived event.
Inheritance: IrcChannelEventArgs
Beispiel #1
0
        /// <summary>
        /// Raises the <see cref="InviteReceived"/> event.
        /// </summary>
        /// <param name="e">The <see cref="IrcChannelEventArgs"/> instance containing the event data.</param>
        protected virtual void OnInviteReceived(IrcChannelInvitationEventArgs e)
        {
            var handler = this.InviteReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #2
0
 /// <summary>
 ///     Raises the <see cref="InviteReceived" /> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcChannelEventArgs" /> instance containing the event data.</param>
 protected virtual void OnInviteReceived(IrcChannelInvitationEventArgs e)
 {
     var handler = InviteReceived;
     if (handler != null)
         handler(this, e);
 }
Beispiel #3
0
        private void LocalUser_InviteReceived(object sender, IrcChannelInvitationEventArgs e)
        {
            AHistory activeChan = ConnectionUtils.GetActiveAHistory(connection);

            activeChan.AddHistory(HtmlWriter.Write(string.Format(MainPage.GetInfoString("InviteReceived"), e.Inviter.NickName, e.Channel.Name,
                "/join " + e.Channel.Name)));
        }
Beispiel #4
0
        private void User_InviteReceived(object sender, IrcChannelInvitationEventArgs e)
        {
            IrcChannelUser chanUser = sender as IrcChannelUser;

            if (chanUser != null)
            {
                foreach (Channel curchan in connection.Channels)
                {
                    Channel user = curchan.Users.FirstOrDefault(p => p.Name == chanUser.User.NickName);

                    if (user != null)
                    {
                        user.Opacity = ConnectionUtils.OpacityFromStatus(chanUser);
                    }
                }
            }
        }