First of all thank you Davec for your helping me
now...
as assume a badword is mayonnaise ..i want in swear.txt
to have the word *mayo* or (sorry about this) the bad word
is fuckers or fuckoff i want in swear.txt to have *f*ck*
I make it some try to set a code and is working - i don't now that is OK or not but it's work -
look and tell me ..this is the code:
on @*:TEXT:*:#: {
if ($nick !isop #) {
var %i = 1
while $gettok($read(swear.txt,1),%i,32) {
if ($+(*,$v1,*) iswm $strip($1-)) {
set -u1800 %rl. [ $+ [ $address($nick,2) ] ] $calc( %rl. [ $+ [ $address($nick,2) ] ] + 1)
if (%rl. [ $+ [ $address($nick,2) ] ] == 1) {
msg $chan $nick badword detected - Next time is ban -
}
if (%rl. [ $+ [ $address($nick,2) ] ] >= 2) {
ban -ku3600 $chan $nick 2 Banned-Badword!
}
}
inc %i
}
}
}

if this code is OK the only thing that i want (i try it but i cant make it) is how can i make the code to see what word the banned person say it and was banned:
ban -ku3600 $chan $nick 2 Banned-Badword! (word: ???)
*(word:??) = how can i make it this?