mIRC Home    About    Download    Register    News    Help

Topic Options
#169504 - 24/01/07 04:48 AM user away check
SuperMappy Offline
Pikka bird

Registered: 21/01/04
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...

Top
#169505 - 24/01/07 04:50 AM Re: user away check [Re: SuperMappy]
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
you can /whois them and find outand utilize the RAW "I am away" code
_________________________
Those who fail history are doomed to repeat it

Top
#169508 - 24/01/07 04:58 AM Re: user away check [Re: SuperMappy]
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
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

Top
#169509 - 24/01/07 05:07 AM Re: user away check [Re: raZOR]
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
yup, that's another way smile And yes, $7 is the GH@*+ identifyer
_________________________
Those who fail history are doomed to repeat it

Top
#169512 - 24/01/07 11:33 AM Re: user away check [Re: SuperMappy]
drc4 Offline
Vogon poet

Registered: 22/11/05
Posts: 105
Loc: Dover, Delaware
Raw 301 appears to be the raw code for away.

Top
#169594 - 25/01/07 09:08 PM Re: user away check [Re: SuperMappy]
SuperMappy Offline
Pikka bird

Registered: 21/01/04
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.

Top
#169735 - 27/01/07 03:27 PM Re: user away check [Re: SuperMappy]
HassanAbbas Offline
Nutrimatic drinks dispenser

Registered: 26/01/07
Posts: 8
Loc: Pakistan
hey hey grin
_________________________
Hey Join US At /server irc.7chatlovers.net And Join #allnitecafe

Top
#169850 - 29/01/07 05:35 PM Re: user away check [Re: SuperMappy]
CtrlAltDel Offline
Hoopy frood

Registered: 15/06/03
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

Top