This is an away script. I really don't like flashy, colourful nonsense on my screen, so you're not getting any of that.
Exceedingly simple commands:
--> To set yourself as away: /a
--> To set yourself as back: /b
Because I despise people continuing to talk after they're away, I've ensured that they suffer for it. If you're set to away and try to speak, all of your "a"s are replaced with "durp", and all of your "e"s are replaced with "flurp". On top of that, a second line is sent after the first one, which simply reads "Translation: I need to stop being a lazy ponce and set myself as back." This is disabled when you "return" via the /b command.
alias a { away $1- | amsg I'm now away from IRC for the following reason: $1- | set %awayreason $1- | set %lolitrolu on }
alias b { away | amsg I'm now back from: %awayreason [This horrifying mess took me $duration($awaytime) to complete] | unset %awayreason | set %lolitrolu off }
on *:input:*: { if ($left($1,1) != /) { if (%lolitrolu == on) { msg # $replace($1-,a, durp,e, flurp) | msg # Translation: I need to stop being a lazy ponce and set myself as back. | halt } } }
You don't need one if you consider undergoing the so-called laser eye surgery. Your eyesight could be back to 20/20 or better. :p But there are risks and side effects involved in the procedure and it's not necessarily suitable for everyone.
The only benefit of laser surgery is that it's a one-time deal, and after that, you take good care of your eyes. You won't require to change glasses anymore.
instead of making it say that lame stuff why not just have it set them as back if they talk.
also no reason to set vars
alias a {
.away $iif($1-,$v1,Gone)
amsg I'm now away from IRC for the following reason: $iif($1-,$v1,Gone)
nick $+($me,[AFK])
}
alias b {
.away
nick $remove($me,[AFK])
amsg I'm now back from: $awaymsg [This horrifying mess took me $duration($awaytime) to complete]
}
on *:input:*: {
if ($away) { b }
}