Added in 1.9.0
$awaymsg
If you are marked as away on current server connection, it returns your away message, otherwise $null.