Пример #1
0
        /// <summary>
        /// Invoked when a RPL_WHOSPCRPL message is received from IRC server.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnWhoXReplyReceived(object sender, WhoxReceivedEventArgs e)
        {
            if (e == null || e.WhoxResponse == null)
            {
                return;
            }

            foreach (ExtendedWho extendedWho in e.WhoxResponse)
            {
                if (extendedWho.User != null &&
                    extendedWho.User.Account != null &&
                    extendedWho.User.Nick != null)
                {
                    Log("IRC", "Received WhoX response for " + extendedWho.User.Nick);
                    AddUserRegistration(extendedWho.User.Nick, true);
                }
            }
        }
Пример #2
0
 internal void OnWhoxReceived(WhoxReceivedEventArgs e)
 {
     WhoxReceived?.Invoke(this, e);
 }