mIRC already has an inbuilt URL capture feature.
/help url catcher
You can then bring a URL window to focus (Alt+U) and see the urls captured.