mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2006
Posts: 5
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Jan 2006
Posts: 5
I've seen some of the bad work filters in some topics that read off swear.txt etc and thats what i want to do but with it to be able to pick up wildcards aswell from swear.txt

the ones posted just pick up the word in the sentence and not when someone does dfgjkdfgjkfuckfdgjdfklgjdg etc

I was just wondering if someone could help or could see about what to do.

Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
there are probably better ways
Code:
on @*:text:*:#:{
  var %fnum = 1
  while ($read(dirtywords.txt,%fnum)) {
    if ($+(*,$read(dirtywords.txt,%fnum),*) iswm $1-) {
      kick $chan $nick
      halt    
    }
    else {
      inc %fnum
    }
  }
} 

Last edited by NeUtRoN_StaR; 20/01/06 03:59 AM.
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
boooo booooo wtf? i got banned for saying "wristwatch" whats with that? smile

Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
:tongue:

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
you must have insulted someone who is "chronically challenged"

Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
chronologically?

Joined: Jan 2006
Posts: 5
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Jan 2006
Posts: 5
Code:
on @*:TEXT:*:#:{ 
  if ($nick !isop #) { 
    if ($regex($strip($1-),/(blah|blah|blah|blah|blah)/i)) { 
      ban  # $gettok($address($nick,2),1,32) | kick # $nick Please Do Not Swear
    } 
  } 
}


i found this on a site and works and picks up wildcard with the swear you add

would it be possible to keep this the way it is and have it read off swear.txt instead of adding the words where blah is.


Link Copied to Clipboard