AC 2689 then IB 2296 at Madrid
Lisbon → Madrid → Melilla
Timetable, Madrid time
14:05AC 2689 from Lisbon at the gatealso UA 6855, AD 7312, S4 8694
12:35IB 2296 to Melilla leaves the gatealso VY 5696
22 h 30 apart on the timetable, overnight
IB 2296 leaves 22 h 30 after AC 2689 arrives on the timetable: more than half a day, so not a connection we count.