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(); }
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(); }