i have found this.....

Code:
 on *:TEXT:*:?:{
  if ($regex($1-,/(www|http:|[censored]|#*|sex|cyber|porn|pussy|teen girls)/i)) {
    echo -s $nick Is Spamming You: $1- | msg $nick Spam Ignored. | ignore -u30 $nick | close -m $nick 
  }
}  


this works nicely.... all you would have to do is either add/change the KEY WORDS(in the brackets) and it will block all queries that contain those keywords so you won't see them. you could also i guess remove the spam notice as well if you wish. it just echos a msg in the status menu that you've been spammed .. i think it's a better alternative to using the ignore -p command, this way allows you to get pm's from people you want to get them from.

just thought i'd share grin