Tuesday, July 13, 2004

Nasty Words...

I was asked:
need help on a on text multi text trigger
like this
on *:text:*bitch*hoe*fuck*shit*damnit*damn*:*: { /msg $chan don't say that $nick ! }
that don't work though
--------
my respond:
--------
Code

on *:text:*:*:{
set %counter 1
while %counter <= $0 {
set %counter2 1
while %counter2 <= $gettok(%words,0,44) {
if ($($+($,%counter),2) == $gettok(%words,%counter2,44)) {
msg $chan ....
return
}
inc %counter2
}
inc %counter
}
unset %counter
unset %counter2
}

---------

then you only need to set the variable %words with the words you whant...
msg $chan .... is the command to be done
return is to make it stop if find one word, if youre gonna use it for a counter remove this...

0 Comments:

Post a Comment

<< Home