Hello, I am creating an auto-responded script on mIRC. I used this code, but I noticed when I closed a query and somebody msged me back within a couple minutes, and it autoresponded again. I was wondering if there was a way to limit this: like if somebody queried me it would not auto-respond again for 20 minutes. Additionally, any other features/ways to protect against flood suggestions would be highly appreciated.
on *:OPEN:?:*: {
if (!$away) {
/msg $nick Hello $nick $+ , I should be with you shortly. Feel free to leave a message. Note I have $query(0) queries open and have been idle for $duration($idle) $+ .
}
else {
/msg $nick Hello $nick $+ , I am currently away ( $+ $awaymsg $+ ). Feel free to leave a message. Note that I have $query(0) queries open and have been away for $duration($awaytime) $+ .
}
}
alias rep {
var %target = $$1
/msg %target Hello %target $+ . How may I help you?
}