How can I check to see if a user is marked as /away ?
if they are simply nicked AFK at the end, that's just a simple check to see if the last 3 characters of their nick is "AFK" or "BBL", etc...
you can /whois them and find outand utilize the RAW "I am away" code
or do /who on user and if raw 352 holds G (think its $7 that has it but not sure, try and see) then user is set to Gone (away)
yup, that's another way
And yes, $7 is the GH@*+ identifyer
Raw 301 appears to be the raw code for away.
Ok, this is what I have so far, it's probably wrong:
/who $nick | raw352 | if (( $7 ) = G ) {
echo -a you are marked as away.
}
Sorry for my ignorance, the raw command is still the one that confuses me the most.
alias checkaway {
who $$1
}
raw 301:*: {
echo -a $2 is away: $3-
}
usage: /checkaway nickname