Sockets would probably be the most efficient way within the constraints of mIRC.

Correct me if I'm wrong anyone!