Just a simple, yet affective, away snippet. Add to a new remote file.
Usage:
/afk [reason]
Sets your status to away, adds "|AFK" to you main nickname and messages every channel with your away message.
You may want to add a re-identify at the /back command if your main and away nickname aren't in the same group.
Add this line of code to after "nick $mnick":
msg NickServ IDENTIFY [password]
Change [password] to your NickServ password.
Modify as needed.
alias afk {
if (!$away) {
away $iif($1,$1,Away From Keyboard)
tnick $mnick $+ |AFK
ame is now away. Reason: $awaymsg
}
else {
echo $color(info) -at You're already marked as away. ( $+ $awaymsg $+ )
}
alias back {
if ($away) {
ame is now back from: $awaymsg $+ . Been away for: $duration($awaytime)
away
nick $mnick
}
else {
echo $color(info) -at You're not away.
}
}
@xdesoto
Usually, at least I have, people have both their main and away nickname grouped so there is no need to re-identify. Although if you don't have them grouped you might want to add it. I added the suggestion to the description. Thanks for pointing it out.
@ProSec
Oh I completely forgot about an if (!$away) check at /afk. Thanks for the tips ;)
Added a check on /afk and an error message on both aliases.