Hi, i couldn't figure out this.
i have a badword script, which works fine, but then i wrote a ctcp/ACTION procedure, which calls this working script, but i f anyone used /me text, gets kick....don't why
i'll appreciate if someone can help me with this, may be an example, i never worked with regexp stuff, or any advise for another solution plz?
thanks
regards
Aw
Thanks Papillon, it helped a lot, i have changed the setup, its working, but its not efficient, i'll appreciate if someone can look these codes and help me to make them more efficient, perfect codes...thanks
set badwordlist {
"test1"
"*test2*"
.
.
.
}
proc badword {nick uhost hand chan rest} {
putlog "$nick $uhost $hand $chan $rest"
global channel botnick badwordlist
foreach badword "$badwordlist" {
if {[string match "$badword" $rest]} {
set rest "$badword"
.
.
.
}
}
}
proc ctcp_badword {nick uhost hand chan keyword rest} {
badword $nick $uhost $hand $chan $rest
}
i have this line -> putlog "$nick $uhost $hand $chan $rest" just to see in a partyline, but now cos of this, if any user type anything, shows in the partyline..