You can avoid channels that have those, for one (this includes most illegal download channels as well as certain other types of channels). You can still get that stuff by avoiding those channels, but it's much less likely.

If you don't want to avoid going to locations that send you that stuff, you can use /ignore nick to ignore the person sending it.

If too many nicks are sending you the ads, you can put in code like this:

Code:
on *:text:*:?: {
  if ($istok($1-,sex,32) || $istok($1-,porn,32) || $istok($1-,sexy,32)) {
    .ignore $nick
    window -c $nick
  }
}


That assumes your ads are displayed through a private message (query) window. All you do is replace the words in the IF line with ones that you see in the ads you are getting. Just add on to that if you need to add more words. If you're getting all ads that use the same word, you can just use one of those things. Remember that these are for words; not phrases. Use words that legitimate users aren't likely to use in conversation with you.

Another option is that if you're getting these ads from users on the channel(s) you're visiting, and you don't want to talk to anyone on those channels, is to do this:

Code:
on *:text:*:?: {
  if ($nick ison #chan || $nick ison #chan2) {
    .ignore $nick
    window -c $nick
  }
}


Replace #chan and #chan2 with your channel(s) ... continue adding more if needed, or remove the second channel if you don't need 2 channels. This will block and ignore all users from the channels you put into there who try to private message you with anything at all.


Invision Support
#Invision on irc.irchighway.net