elseif ($away == $true) {
/echo You are already away and will not be marked for auto-away.
}
You shouldn't really have that, as if you're really away you won't be there to read that, lol.
Also, when you do come back you'll return to a window full of that, from it telling you whenever the script runs that you're away because it doesen't do a check whether it;s been triggered before, just repeats over and over again.