internal void OnIRCMessage(Message message) => IRCMessage?.Invoke(message);
private void ProcessMessages() { while (tcpClient != null && tcpClient.Connected && reader != null && !reader.EndOfStream) { var line = reader.ReadLine(); if (string.IsNullOrEmpty(line)) continue; //Parse the message var msg = new Message(this, line); //Choose a message type and process the message msg.Process(); OnIRCMessage(msg); } }