mIRC Homepage
Posted By: BiDi A very simple advertisement ignorer - 16/12/02 12:07 AM
I know this post belongs to the scripts section of the site, alltrough posting there is not allowed for me I will give users of this forum here a chance to make their irc experience better by disabling the annoying commercials when user joins a channel.

The code below will make the queries that have a # or an http:// (in the first line) not open. You will still see the # or http:// containing lines in the normal conversation, this script only protects against one-line-query-opening commercials by making mIRC simply not displaying them.

Just hit alt+R and copy-paste text below into the open window. Click OK and you're done.

Code:
on ^1:OPEN:?:*: {
  if ( http:// isin $1-) {
      halt
    }
  }
  if ( $chr(35) isin $1-) {
     halt
  }
}
Posted By: Merlin Re: A very simple advertisement ignorer - 16/12/02 10:08 AM
An easier way would be:
Code:
  
IF ((*www* iswm $1-) || (http://* iswm $1-) || (ftp://* iswm $1-) || ($chr(35) isin $1-)) { halt } } 

NOTE: $chr(35) is # - so channel names in those advertisements would me tracked also.
Check thre varioius scripting web sites for protection scripts. The #mIRC channel operators on different networks will know some save sites to download such scripts. laugh
Posted By: acemiles_ed Re: A very simple advertisement ignorer - 19/12/02 01:56 PM
BiDi:

What happens when a friend puts a web site in the chat? All you friends would have to be moved into an access level, say level 2.

But that's too much trouble to do IMO... Just ignore/kick the person manually. I know who my friends are, and who the spammers are... But good idea any how grin
Posted By: BiDi Re: A very simple advertisement ignorer - 31/07/03 10:46 AM
You probably didn't notice that script works "on open" and not "on text", so the problem would be only if your friend would write url or # into the 1. line of text to you. That's not the case in 99,9% of "friendly" messages, but it happens in 95% of advertisements. My script only prevents window from opening if the first line contains advertising string. Should I say... mIRC pop-up blocker wink
© mIRC Discussion Forums