you helped me with this codes it works fine but i still have one problem
Make your text file similar to this:
Word 1|kick
Word2|Warn
Bad Word 1|KickBan
Then as you were doing..
on @1:TEXT:*:%wearchannels: {
if ($isFile(swear.txt)) {
/set -u0 %l 1
while (%l <= $lines(swear.txt)) {
/set -u0 %word $gettok($read(swear.txt, %l), 1, 124)
if ( isin $1-) {
/set -u0 %action $gettok($read(swear.txt, %l), 2, 124)
if (%action == Kick) { /kick $chan $nick You have been kicked for swearing ( $+ $replace(%word,a,?,e,?,i,?,o,?,u,?) $+ ) }
else if (%action == KickB) {
/mode $chan -ov+b $nick $nick $nick
/kick $chan $nick You have been kick-banned for swearing ( $+ $replace(%word,a,?,e,?,i,?,o,?,u,?) $+ )
}
else { /msg $chan $nick $+ , Please do not say $replace(%word,a,?,e,?,i,?,o,?,u,?) again. }
}
/inc -u0 %l
}
}
}
That will look for the word through the text file, then based on the action listed after the word and the |, it will take action. It iwll look for Kick, or Kickb, or otherwise default to just warning the person.
-KingTomato
http://www.kingtomato.com/ AIM: otamoTgniK
yes it kicked but if i set my first bad word is:
(1)bad|KickB then it will kick and banned
but this is the problem if i set another word:
(2)bad word|Kick
then it only go to the (1) and doesnt go to (2) is anyway to fix this thanks
what i want is when someone say "bad" then it will kick and banned but if someone say "bad word" then it will kick only