Пример #1
0
 private void ProcessPartCommand(string[] tokens)
 {
     OnPart?.Invoke(
         Rfc2812Util.UserFromString(tokens[0]),
         RemoveLeadingColon(tokens[2]),
         tokens.Length >= 4 ? RemoveLeadingColon(CondenseStrings(tokens, 3)) : "");
     //Trace.WriteLine("Part", "IRC");
 }
Пример #2
0
        /// <summary>
        /// Verarbeitet das Verlassen eines Users eines Channels
        /// </summary>
        /// <seealso cref="OnPart"/>
        private void _connection_OnPart(object sender, PartEventArgs e)
        {
            Log.Information("{Nickname} hat den Raum {Channel} verlassen", e.Who, e.Channel);
            MaintainUser(e.Who);

            ThreadPool.QueueUserWorkItem(x =>
            {
                OnPart?.Invoke(this, e);
            });
        }