thanks
I think this works better
on *:text:*:?:{
if ($fprot) { return }
if ($1- iswm hi *) { msg $nick hello $nick | fprot 100 }
elseif ($1- iswm bye *) { msg $nick goodbye $nick | fprot 100 }
}
alias -l fprot {
if ($isid) { return $hget(fprot,$site) }
elseif ($1 isnum) { hadd -mz fprot $site $1 }
}
and it doesnt consumes resources trying to read the text file
however there is a problem:
it stops replying to the same ip if it has replied once to ANY of the hi,bye,etc to this ip
I want to make it stop replying to the same ip if it has replied once to the SAME hi,bye,etc
I mean if someone tells me hi, and then (before 100 secs expire) bye, I want to reply to both
I dont want to reply to the second time he says hi inside 100 seconds, not to any other query he send inside 100 secs
thanks