@ Scakk:
a. I don't know how to close the query window automatically
b. Without closing the query window automatically -p won't matter.
I've tested it and it says in the help file:
Note: If you have a /query window open with someone, private messages from them won't be ignored even if their address matches an ignore address.
@ mountaindew