Beispiel #1
0
 protected virtual void OnKick(IrcContext context)
 {
     if (context.InvolvesBotClient && AutoRejoin)
     {
         context.Join(context.Parameters.First());
     }
 }
Beispiel #2
0
        protected override void OnServerMessage(IrcContext context)
        {
            var code = context.GetReplyCode();

            if (code == ServerReplyCode.EndOfMessageOfTheDay)
            {
                context.Join(_channel);
            }
            else if (code == ServerReplyCode.NameReply)
            {
                _nameBuffer.AddRange(context.Parameters.Last().Split(' '));
            }
            else if (code == ServerReplyCode.EndOfNames)
            {
                _names = _nameBuffer.ToArray();
                _nameBuffer.Clear();
            }
        }
Beispiel #3
0
 protected virtual void OnKick(IrcContext context)
 {
     if(context.InvolvesBotClient && AutoRejoin)
     {
         context.Join(context.Parameters.First());
     }
 }