What's wrong with this?

Code:
if ($network == Whateverreally && *Something isin $awaymsg) {
    nick mynick`afk
  }