Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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;
        }