mIRC Home    About    Download    Register    News    Help

Print Thread
#18365 06/04/03 08:08 PM
Joined: Jan 2003
Posts: 21
J
Jay_T Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2003
Posts: 21
ok here is my code
On @1:TEXT:*:%Swearchannels: {
set %i 0
:checking
inc %i 1
set %currentsword $read -l $+ %i swear.txt
if (%currentsword == $null) { .unset %i | goto end }
else {
if (%currentsword isin $1-) { goto offense }
else { goto checking }
}
blushffense
.auser 22 $nick
.ban -u100 $chan $nick 1 $replace($address,1,?,3,?,5,?,7,?,9,? $+ )
.kick $chan $nick you said $replace(%currentsword,i,?,a,?,u,?,e,?,o,? $+ ) 12Swearing not allowed,auto kick
else {
.auser 11 $nick
.goto end
}
:end
}
my question is why it doesnt replace the ? on my banned for example if i banned this ip "ip-9190.pE.dip.t-dialin.net" then it will turn out to be ip-???.pE.dip.t-dialin.net but it doesnt so can someone help me.....sorry for my english

#18366 07/04/03 04:57 AM
Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
You can specify either Nick & Type or an address, not both.

.ban -u100 $chan $replace($address($nick,1),1,?,3,?,5,?,7,?,9,?)


Link Copied to Clipboard