on *:TEXT:!away:#: {
if ($nick isop #) {
set %away.mode On
msg $chan Away mode activated, new users will be alerted that the streamer is away
}
}
on !*:JOIN:#: {
if (!%away.mode) return
if ((%floodjoin) || ($($+(%,floodjoin.,$nick),2))) { return }
set -u10 %floodjoin On
set -u30 %floodjoin. $+ $nick
msg $chan $nick $remove(#,$chr(35)) is away, and will be back shortly
}
on *:TEXT:!awayoff:#: {
if ($nick isop #) {
unset %away.mode
msg $chan The streamer is back! Enjoy the show. :)
}
}