hi guys, I have a text file contains some of bad words but I want the script to accept wildcards for example i have in my bad words file:
blah
*blah1*
*blah2
blah3*
I want the script to scan the text file and
if word blah == $1- kick but if word blah isin $1- dont kick
if word blah1 isin $1- kick
if word .......blah2 isin $1- kick
if word blah3....... isin $1- kick
I am using:
on *:text:*:#:{
var %w 1
while ($lines(badwords.txt) >= %w) {
if ($read(badwords.txt,%w) isin $1-) {
kick $chan $nick bad word
break
}
inc %w
}
}
any help please? I think that it is hard to be done with *blah2 or blah3* but if impossible then what is about blah and *blah1* ?
many blahs