this is my auto away script when ur on idle
u can use brb to put u away and to come back just say something in the channel
if u don't use brb it will set u away after 30 min. with the text brb
example:
brb
*** you are now on away ***
when u do a whois it will say:
cofvempire is away: is gone from 19:45:30
and when ur back it says in the channel:
i'm back after 23 sec. after idle since 19:45:30
it includs an connect and disconnect so the timer starts and halts when its needed
changed:
-when someone needs u in a channel while u are on away, it will auto. say: sorry, but i am away since: awaytime
feel free to comment :)
```mirc
on *:INPUT:#: {
if ($1 == brb) {
set %away.ctime $ctime
set %away.since $time
away i'm gone since $time
}
elseif ($away == $true) {
say i'm back after $duration($calc($ctime - %away.ctime)) idle since %away.since
away
}
}
alias gone {
if (($idle > 1800) && ($away == $false)) {
say brb
away i'm gone since $time
}
}
alias taway {
/timergone 0 600 /gone
}
on *:TEXT:*:#: {
if ($away == $true) && ($me isin $1-) {
say sorry, but i am away since: %away.since
}
}
on *:CONNECT:/taway
on *:DISCONNECT:/timergone off
```