thanks
the two read lines are these:

if $read(Hi.txt,w,$+($1-,*)) {
.timer 1 3 msg $nick !$gettok($read(Hi.txt,$readn),-1,45)

but how do I add the p switch?

as for the ip, I know the ips, so can you tell me the script with ips please

thank you