mIRC already has flood control, which does the same basic thing. If enabled, it won't send the lines faster than what it is set for.