you should really add some kind of flood pro to ur on text event or risk people flooding you.
also on ur text event no need to do
if ($away == $true) {
you can just use
if ($away) {