napa182 commented on a Page, Silent Away Cross-Network v1.0  -  Oct 11, 2008

look into /help $iif
um you can shorten this

alias gone {
  if (!$1) {  
    .scon -a away AFK
    echo Away System On
    .set %Kaway on
    .set %Kawaymsg AFK
    .enable #Beep
    halt
  }
  .scon -a away $1-
  echo Away System On
  .set %Kaway on
  .set %Kawaymsg $1-
  .enable #Beep
}

into this

alias gone { 
  .scon -a away $iif(!$1,AFK,$1-)
  echo Away System On
  set %Kaway on
  set %Kawaymsg $iif(!$1,AFK,$1-)
  .enable #Beep
}

keep up the coding

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.