protected virtual void OnKick(IrcContext context) { if (context.InvolvesBotClient && AutoRejoin) { context.Join(context.Parameters.First()); } }
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(); } }
protected virtual void OnKick(IrcContext context) { if(context.InvolvesBotClient && AutoRejoin) { context.Join(context.Parameters.First()); } }