If they're true "popup" ads, and not mIRC query windows, try this little utility to disable windows messaging.