Ejemplo n.º 1
0
 public ChannelInfo(string name, IrcDaemon ircDaemon)
     : base(ircDaemon)
 {
     Name = name;
     ChannelType = ircDaemon.SupportedChannelTypes[name[0]];
     Modes = new ChannelModeList(ircDaemon);
 }
Ejemplo n.º 2
0
        public IrcDaemon(IrcMode ircMode = IrcMode.Modern)
        {
            Capabilities = new List <string>();

            // Create Optionobject & Set the proper IRC Protocol Version
            // The protocol version cannot be changed after construction,
            // because the construction methods below use this Option
            options = new ServerOptions(ircMode);

            //Clean Interface to statistics, it needs the IrcDaemon Object to gather this information.
            stats = new ServerStats(this);

            // Setup Modes Infrastructure
            modeFactory           = new ModeFactory();
            supportedChannelModes = new ChannelModeList(this);
            supportedRanks        = new RankList(this);
            supportedUserModes    = new UserModeList(this);

            // The Protocol Objects
            commands      = new CommandList(this);
            replies       = new ServerReplies.ServerReplies(this);
            serverCreated = DateTime.Now;

            // Add Commands
            SetupCommands();
            // Add Modes
            SetupModes();
            //Add ChannelTypes
            SetupChannelTypes();
        }
Ejemplo n.º 3
0
 public ChannelInfo(string name, IrcDaemon ircDaemon)
     : base(ircDaemon)
 {
     Name        = name;
     ChannelType = ircDaemon.SupportedChannelTypes[name[0]];
     Modes       = new ChannelModeList(ircDaemon);
 }
Ejemplo n.º 4
0
        public IrcDaemon(IrcMode ircMode = IrcMode.Modern)
        {
            Capabilities = new List<string>();

            // Create Optionobject & Set the proper IRC Protocol Version
            // The protocol version cannot be changed after construction,
            // because the construction methods below use this Option
            Options = new ServerOptions(ircMode);

            //Clean Interface to statistics, it needs the IrcDaemon Object to gather this information.
            Stats = new ServerStats(this);

            // Setup Modes Infrastructure
            ModeFactory = new ModeFactory();
            SupportedChannelModes = new ChannelModeList(this);
            SupportedRanks = new RankList(this);
            SupportedUserModes = new UserModeList(this);

            // The Protocol Objects
            Commands = new CommandList(this);
            Replies = new ServerReplies.ServerReplies(this);
            ServerCreated = DateTime.Now;

            // Add Commands
            SetupCommands();
            // Add Modes
            SetupModes();
            //Add ChannelTypes
            SetupChannelTypes();
        }