!bwadd word
adding the words in badwords.txt
the code i gave bans if words added as
word1
word2
word3
but the command !bwadd words abreast
like word1|word2|word3
Code:
on @*:text:*:#:{if $nick isreg # { var %k = 1,%kk = $lines(badwords.txt) | while %k <= %kk { if $+(*,$read(badwords.txt,%k),*) iswm $1- { ban -ku600 $chan $nick 2 Bad word detected out out > $read(badwords.txt,%k) | return $true } | inc %k } | return $false }

so this not works if words added like this word1|word2|word3

Last edited by xyzzy; 24/08/08 11:47 PM.