mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 2
B
BiDi Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Dec 2002
Posts: 2
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
  }
}

Joined: Dec 2002
Posts: 164
M
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 164
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


DALnet: #HelpDesk, #mIRC, #MISHScript - Undernet: #mIRC, #mIRC-Scripts
Joined: Dec 2002
Posts: 83
A
Babel fish
Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
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

Joined: Dec 2002
Posts: 2
B
BiDi Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Dec 2002
Posts: 2
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


Link Copied to Clipboard