mIRC Home    About    Download    Register    News    Help

Print Thread
#168204 05/01/07 07:39 AM
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
Code:
on *:ACTION:*:#channel:{
  if (*.com* isin $1) {
    kick # $$1 no adds
  }
  elseif (*.net* isin $1) {
    kick # $$1 no adds
  }
  elseif (*.org* isin $1) {
    kick # $$1 no adds
  }
  elseif (*www.* isin $1) {
    kick # $$1 no adds
  }
}

on *:TEXT:*:#channel:{
  if (*.com* isin $1) {
    kick # $$1 no adds
  }
  elseif (*.net* isin $1) {
    kick # $$1 no adds
  }
  elseif (*.org* isin $1) {
    kick # $$1 no adds
  }
  elseif (*www.* isin $1) {
    kick # $$1 no adds
  }
}



im making an anti-adds/url script...
is it possible to combine these two script?? if not can some1 tell me how to make this script much shorter... thankz in advance

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Code:
on *:ACTION:*:#channel: { 
 if (*.com* iswm $1) || (*.net* iswm $1) || (*.org* iswm $1) || (*www.* iswm $1) { kick # $nick no adds }
}

on *:TEXT:*:#channel: { 
 if (*.com* iswm $1) || (*.net* iswm $1) || (*.org* iswm $1) || (*www.* iswm $1) { kick # $nick no adds }
}


^^ Would be best to use regex to maybe shorten the code, I think, but I'm no good with regex. Also use ISWM when using wildcards.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!

Link Copied to Clipboard