A while back, someone had helped me with a simple away script. Here's the trouble I keep running into:

*When I set myself away, about every half hour a simple message displays in the channel. When I set myself back the timer doesn't shut off for some reason and I get this message as well

Quote:

* The_Game is now known as The_Game[afk]
* The_Game[afk] is now known as The_Game
* The_Game is now known as The_Game


I waited about 30 seconds before setting myself back from away.

Although for some reason, Something doesn't look quite right about this code, either that or i'm just blind. I will post it so someone can take a look at it and see if theres anything wrong with it. It does basically do what I initially wanted it to. If you feel the need to change something around feel free to do so. I am just wanting to know if this is ok or not. Here it is:

Code:
menu * {
  -
  Away System
  .$iif($away == $true,Off,On):{
    if ($away == $true) {
      .away | .nick The_Game | .timerAway off | .ame has returned! | .disable #AwayNotices
      if ($line(@AwayNotices,0) == 2) { echo $color(notify) -at You have no messages waiting }
      if ($line(@AwayNotices,0) >= 2) { echo $color(notify) -at You have $calc($line(@AwayNotices,0) - 2) message(s) waiting }
    }
    if ($away == $false) {
      .away stepped away from keyboard! | .nick The_Game[afk]
      .timerAway 0 1800 ame is away from the keyboard! If you must speak with me leave me a notice and I will get back to you!
      .window -kn @AwayNotices | .enable #AwayNotices
    }
  }
}
#AwayNotices on
on *:NOTICE:*:*:{
  if ($window(@AwayNotices) == $null) { .window -kn @AwayNotices }
  .aline -p @AwayNotices $timestamp << $nick >> $1-
  .notice $nick Thanks for your message, I will respond on my return
}
on *:TEXT:*:?:{
  .msg $nick I am AFK. Please use /notice $me <message> if it is urgent and I will respond on my return
  if ($line($nick,0) == 1) { /close -m $nick }
}
#AwayNotices End


Thanks in advance...