Thanks maroon
This is code
ON !*:JOIN:#: {
var %domain = $address($nick,2)
var %ident = $remove($gettok($gettok(%fullhost ,2,33))
if ($read(do.txt, w, *, %domain ) isin %domain ) {
ban -u77200 # $address($nick,2)
}
else {
dec %domain
}
}
The code read one first line only in filetext(do.txt)
, not search in all lines in the filetext
In need read or search all lines numbers in the filetext,
If there is a match of the number in one of the lines, execute the command