this is a open code that will close an open window unless its by another op or yourself
ON *:OPEN:*:*: {
if (($nick isop $comchan($nick,1)) || ($me == $nick)) { halt }
else {
closemsg $nick
}
}
Now there is a simpler mirc command that will do the same thing by typing
/ignore -p *!*@*