An easier way of doing the same thing:

on *:TEXT:*:?: {
.msg $nick Please do not PM me.
.window -c $nick
}

If you have a decent computer, you won't even see the PM window.