public IrcBot(string ServerAddress, IrcUser user, string ControlCharacter, Encoding encoding) { this.ServerAddress = ServerAddress; this.ControlCharacter = ControlCharacter; this.RegisteredCommands = new Dictionary <string, CommandHandler>(); this.Encoding = encoding; this.User = user; this.Channels = new List <IrcChannel>(); this.ChanServ = new ChanServ(this); this.LastRawMessageSent = DateTime.MinValue; }
private Action<IrcUser> WhoIsCallback; // TODO: Make this better #endregion Fields #region Constructors public IrcBot(string ServerAddress, IrcUser user, string ControlCharacter, Encoding encoding) { this.ServerAddress = ServerAddress; this.ControlCharacter = ControlCharacter; this.RegisteredCommands = new Dictionary<string, CommandHandler>(); this.Encoding = encoding; this.User = user; this.Channels = new List<IrcChannel>(); this.ChanServ = new ChanServ(this); this.LastRawMessageSent = DateTime.MinValue; }