Why waste a variable (%awaystatus) when mIRC already keeps track of it ($away) ?

Also, checking every second seems a bit overzealous..