mIRC Home    About    Download    Register    News    Help

Print Thread
#169504 24/01/07 04:48 AM
Joined: Jan 2004
Posts: 16
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2004
Posts: 16
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...

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
you can /whois them and find outand utilize the RAW "I am away" code


Those who fail history are doomed to repeat it
Joined: Apr 2005
Posts: 1,009
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
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)



IceCapped
raZOR #169509 24/01/07 05:07 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
yup, that's another way smile And yes, $7 is the GH@*+ identifyer


Those who fail history are doomed to repeat it
Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
Raw 301 appears to be the raw code for away.

Joined: Jan 2004
Posts: 16
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2004
Posts: 16
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.

Joined: Jan 2007
Posts: 8
H
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
H
Joined: Jan 2007
Posts: 8
hey hey grin


Hey Join US At /server irc.7chatlovers.net And Join #allnitecafe
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Code:
alias checkaway {
  who $$1
}
raw 301:*: { 
  echo -a $2 is away: $3-
}

usage: /checkaway nickname


I refuse to engage in a battle of wits with an unarmed person. wink

Link Copied to Clipboard