FR 7156 then FR 5382 at Madrid
Dublin → Madrid → Valletta
Timetable, Madrid time
23:45FR 7156 from Dublin at the gate
18:55FR 5382 to Valletta leaves the gate
19 h 10 apart on the timetable, overnight
FR 5382 leaves 19 h 10 after FR 7156 arrives on the timetable: more than half a day, so not a connection we count.