Razor there was a bug found in MIRC that the auto-away system is not working it stats as $Null after a few moments of being away so in theory it un-away's itself, I think its in the mIRC help section of this forums or bugs or dev im not 100% sure but if ($away) will not work after a few moments which is a good idea

Theres a long posted fix for it kind of workaround but simple I would have a dialog created that when i put my away message it will make a variable like %away.sys = on

and then on PM event i checked that if %away.sys == on proceed with message. then when im back from away again in this dialog set an event to put %away.sys = off