Less annoying version of an away script that also automatically sets you away after 10 mins of idle
Load into remotes
type /back to come back
NEW FEATURE
type /awaysetup to set the amount of time you wish to be idle before
AutoAway is enabled
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
:::::::::::: AUTO-AWAY :::::::::::::::::
::::::::::: by PePSiMaN ::::::::::::::::
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;: Auto-Away
alias aaway {
away Auto-Away after 10 minutes
set %und $ctime
}
alias back {
away
unset %und
}
on *:TEXT:*:*: {
if ($nick($chan,$me).idle > $calc(%time * 60)) && ($away = $false) {
aaway
}
if ($me isin $1-) && ($away = $true) {
notice $nick I regret to inform you, $nick $+ , but i am currently away. I have been gone for $duration($calc($ctime - %und)) $+ .
if (!$window(@Away)) window @Away {
echo 7 -t @Away $+ $nick $+ in $+ $chan $+ said: $1-
}
}
}
on *:START: {
timer 1 5 awaysetup
}
alias awaysetup {
set %time $?="Enter how many minutes you wish to be idle before Auto-Away is enabled"
}
Now just add the following codes, and it will be ALMOST be as 1337 as mine ;)
On your aaway alias:
set %away.title.bar $titlebar
timeraway 0 1 titlebar You are currently away. You have been gone for $!duration($awaytime) $+ .
And on your back alias:
titlebar %away.title.bar
unset %away.title.bar
timeraway off
And what that will do is make the titlebar for mIRC refresh your away time status! When you return, it will restore the titlebar to whatever you had it set to before you went away!
Also, did you know that you can/should replace all
$duration($calc($ctime - %und)) $+ .
with this:
$duration($awaytime)) $+ .
A lot simpler, doesn\'t use any variables, and smaller too :D