mIRC Home    About    Download    Register    News    Help

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

Re: user away check [Re: SuperMappy] #169505 24/01/07 04:50 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
you can /whois them and find outand utilize the RAW "I am away" code


Those who fail history are doomed to repeat it
Re: user away check [Re: SuperMappy] #169508 24/01/07 04:58 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline
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
Re: user away check [Re: raZOR] #169509 24/01/07 05:07 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
yup, that's another way smile And yes, $7 is the GH@*+ identifyer


Those who fail history are doomed to repeat it
Re: user away check [Re: SuperMappy] #169512 24/01/07 11:33 AM
Joined: Nov 2005
Posts: 105
D
drc4 Offline
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
Raw 301 appears to be the raw code for away.

Re: user away check [Re: SuperMappy] #169594 25/01/07 09:08 PM
Joined: Jan 2004
Posts: 16
S
SuperMappy Offline OP
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.

Re: user away check [Re: SuperMappy] #169735 27/01/07 03:27 PM
Joined: Jan 2007
Posts: 8
H
HassanAbbas Offline
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
Re: user away check [Re: SuperMappy] #169850 29/01/07 05:35 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
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