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
}
}
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)
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.