Distribution was made (diedideto). Imperfect passive of diadidōmi, late omega form for diedidoto (the stem vowel o displaced by e). Impersonal use of the verb here.
According as any one had need (kathoti an tis chreian eichen). Imperfect active of echō with kathoti and an with the notion of customary repetition in a comparative clause (Robertson, Grammar, p. 967).