simple away system (no dialogs)

By CmpaX on Mar 01, 2006

work's easy :)

alias F4 { 
  if ($away == $false) {
   /set %nnick $me
   /nick %anick $$?="Away nick:"
   /set %reason $$?="Reason:"
   /away %reason
   /ame Away
  }
  else if ($away == $true) {
   /away
   /nick %nnick
   /ame Back
  }
}

Comments

Sign in to comment.
Kyousoukyoku   -  Oct 14, 2007

Well if you cant make a Simple Away System dont even Script no point

Tippy: You should probably be giving the user support to back up your claim, otherwise it\'s blunt and the author won\'t have a single idea on how he/she should fix it. Please don\'t provide blunt comments, as they are probably ignored in the long run.

To the author:
Pretty quick to access but I agree with the sladekraven. Couple things he changed:
1) The code:

 if ($away == $false) 

can be changed to:

if (!$away)

2) Checked for possible errors. 
3) Removed slashes (/)

Just something I would like to add:

alias F4 {
if (!$away) {
set %bnick $me
nick $$?=\"Away nick:\"
set %away.reason $iif($editbox($active),$editbox($active),$$?=\"Reason:\")
away %away.reason
ame %away.reason
}
else {
away
nick %bnick
ame Back from $awaymsg
unset %bnick %away.reason
}
}


(unsetting variables)
 Respond  
Gummo   -  Oct 14, 2007

I don\'t believe you have a script, Tippy.

 Respond  
napa182   -  Oct 14, 2007

wow Tippy a bit harsh =/

 Respond  
Tippy   -  Aug 12, 2006

Well if you cant make a Simple Away System dont even Script no point

 Respond  
sladekraven   -  Mar 02, 2006

Slight modifications:

alias F4 {
if (!$away) {
set %bnick $me
nick $$?=\"Away nick:\"
set %away.reason $iif($editbox($active),$editbox($active),$$?=\"Reason:\")
away %away.reason
ame %away.reason
}
else {
away
nick %bnick
ame Back from $awaymsg
}
}

If you have text in your editbox when you press F4 that will be your away message. If no text is in the editbox, a user input field will popup.

 Respond  
CmpaX   -  Mar 01, 2006

:)

 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.