public void Connect() { CommandManager.Init(); ChatMonitor.Init(); if (client.IsConnected) { return; } Reconnect(TimeSpan.Zero); }
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; }