mIRC Home    About    Download    Register    News    Help

Print Thread
Filter #170487 09/02/07 06:42 PM
Joined: Oct 2006
Posts: 60
M
moshkin Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Oct 2006
Posts: 60
if ($read(badword.txt,w,*) { /ban -ku300 $chan $nick 2 Swearing 5min ban }

Re: Filter [Re: moshkin] #170490 09/02/07 07:21 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
I dont know why you posted this, but your mirc should have given you an error message saying there was an error in the comparison.

($read(badword.txt,w,*) <= need a closing parenthesis

Re: Filter [Re: DJ_Sol] #170495 09/02/07 07:40 PM
Joined: Oct 2006
Posts: 15
S
syr Offline
Pikka bird
Offline
Pikka bird
S
Joined: Oct 2006
Posts: 15
try this
Code:
 on *:text:*:#:if ($read(bad.txt, w, $$1- ) && $readn > 0 ) { ban -ku300 # $nick 2 Swearing 5min ban } | if $readn == 0 { halt }
 

Re: Filter [Re: syr] #170499 09/02/07 08:02 PM
Joined: Oct 2006
Posts: 60
M
moshkin Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Oct 2006
Posts: 60
Still isn't working frown

Re: Filter [Re: moshkin] #170504 09/02/07 09:25 PM
Joined: Oct 2006
Posts: 15
S
syr Offline
Pikka bird
Offline
Pikka bird
S
Joined: Oct 2006
Posts: 15
rename the file to bad.txt and put it in the mIRC DIR