Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Irc"/> class.
        /// </summary>
        public IrcManager(SynServerTool sst)
        {
            _client        = new StandardIrcClient();
            _configHandler = new ConfigHandler();
            IrcSettings    = GetIrcSettingsFromConfig();
            var ircCmdProcessor = new IrcCommandProcessor(sst, this);

            _ircEvent     = new IrcEvents(IrcSettings, ircCmdProcessor);
            _validIrcNick = new Regex(@"^([a-zA-Z\[\]\\`_\^\{\|\}][a-zA-Z0-9\[\]\\`_\^\{\|\}-]{1,15})");
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcEvents"/> class.
 /// </summary>
 /// <param name="ircSettings">The irc settings.</param>
 /// <param name="ircCommandProcessor">The irc command processor.</param>
 public IrcEvents(IrcOptions ircSettings, IrcCommandProcessor ircCommandProcessor)
 {
     _ircSettings         = ircSettings;
     _ircCommandProcessor = ircCommandProcessor;
 }