FR 7958 then FR 6394 at Barcelona
Cork → Barcelona → Dublin
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
19:05FR 6394 to Dublin leaves the gate
20 h 10 apart on the timetable, overnight
FR 6394 leaves 20 h 10 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.