public ReceivedIrcMessage(IrcStandardReply reply) { Reply = reply; var msg = new IrcMessage(); msg.Target = reply.Parameters[0]; msg.Type = reply.Command.Equals("PRIVMSG", StringComparison.OrdinalIgnoreCase) ? MessageType.PrivMsg : MessageType.Notice; msg.Text = reply.Parameters[1]; Message = msg; }