If your server supports it, you can use the silence command in this form:
This command tells the server not to deliver to you private msgs/notices/ctcps from any address. Type /SILENCE -*!*@* to undo.
You can also use the client-side command, /ignore -p *, that tells mIRC not to open a query window when a private message is received. See /help /ignore for other options.