type alt + r and put this in a seperate remote file:

on *:OPEN:*: {
if ( http isin $1- ) || ( htm isin $1- ) || ( /server isin $1- ) || ( film isin $1- ) || ( pics isin $1- ) || ( /decode isin $1- ) || ( html isin $1- ) || ( film isin $1- ) || ( pic isin $1- ) || ( com isin $1- ) || ( /j isin $1- ) || ( $chr(35) isin $1- ) || ( www isin $1- ) {
.ignore -u5 $nick 2 | close -m $nick | /echo -a M ass Advertising Detected On [ $nick ] | halt
}
}

replace the text before 'isin' with whatever u want ignored .

this should ignore the user for 5 seconds, and also close the window right after it opens.