The Doctor states that a man wrongly identified as the Master had turned out to be the Spanish Ambassador. This is a deliberate in-joke.
Roger Delgado who played The Master in Doctor Who had earlier played Mendoza, the Spanish Ambassador in 7 episodes of Sir Francis Drake.