mIRC has this built in. In Options go to IRC / Flood and turn on Enable flood protection and Queue Own messages.