Exemple #1
0
        public void Connect()
        {
            CommandManager.Init();
            ChatMonitor.Init();

            if (client.IsConnected)
            {
                return;
            }

            Reconnect(TimeSpan.Zero);
        }
Exemple #2
0
        IRC()
        {
            nextConnect = DateTime.MaxValue;

            client.SendDelay            = 0;
            client.Encoding             = Encoding.UTF8;
            client.AutoRetry            = true;
            client.AutoRejoin           = true;
            client.AutoRelogin          = true;
            client.AutoRejoinOnKick     = true;
            client.ActiveChannelSyncing = true;

            CommandManager = new CommandManager(client);
            ChatMonitor    = new ChatMonitor(client);

            client.OnRegistered   += OnConnected;
            client.OnDisconnected += OnDisconnected;
            client.OnJoin         += OnJoin;
        }