mIRC Homepage
Posted By: The_JD $server().idle - 20/07/08 09:28 PM
$server.idle even

If there is one allready, forgive me...

Just thought it would compliment the new .idle properties.
Posted By: starbucks_mafia Re: $server().idle - 20/07/08 09:31 PM
Already there: $idle
Posted By: The_JD Re: $server().idle - 20/07/08 09:42 PM
Thanks, I seen that... But what I meant was idle time since you recieved data... I guess mIRC would use something similar for the "PING :TIMEOUTCHECK".

Exactly the same as $chan(#).idle


.... $idle returns the seconds since you did something in mIRC (even an echo)

$chan(#name).idle returns the seconds since there was activity on the channel
Posted By: RusselB Re: $server().idle - 21/07/08 12:01 AM
While I didn't find an identifier for this, it is returned as $3 in raw 317, which, in turn, is generated by the /whois command.

Usage: /server.idle <nick>
Note: <nick> is optional and will default to your nick if not supplied.

Code:
alias server.idle {
  .enable #server.idle
  .whois $iif($1,$1,$me)
}
#server.idle off
raw 317:*:{
  echo -a $duration($3)
  halt
}
raw 318:*:{
  .disable #server.idle
  haltdef
}
#server.idle end
Posted By: The_JD Re: $server().idle - 21/07/08 12:06 AM
Not a bad idea, I like that one :P

BUT... I was referring to incoming and outgoing data from the socket... like the timeoutcheck would see... Not sure if I'm explaining it properly... Like time since last bytes sent/received.
Posted By: RusselB Re: $server().idle - 21/07/08 12:49 AM
I understand what you're asking for, and what I gave you is as close as I was able to come up with in the roughly 90 minutes since your original post.
Posted By: The_JD Re: $server().idle - 21/07/08 01:13 AM
Yeh, it's a shame that MY raw * dosnt work frown

....does anyone other than myself like this idea? eek
Posted By: RusselB Re: $server().idle - 21/07/08 03:11 AM
Quote:
Yeh, it's a shame that MY raw * dosnt work


It doesn't? To my knowledge raw numerics/events are returned by the network, so unless you have a script that disables these, and that script is loaded before the one I posted, my code should work fine.

If this is not the case, can you provide an sample of what you do get using the /whois command with the output being directed to a custom window via the /debug command.
Posted By: The_JD Re: $server().idle - 21/07/08 10:25 AM
Nah, I mean't raw "*" (raw anything)
Posted By: CtrlAltDel Re: $server().idle - 21/07/08 01:37 PM
wouldn't that be
raw *:*:
to mean raw anything?
Posted By: The_JD Re: $server().idle - 21/07/08 01:43 PM
Yeh...lol

Anyhow.. back to topic:

$server.idle would suit the rest of the new idle $prop's
Posted By: RusselB Re: $server().idle - 21/07/08 09:58 PM
Sorry to keep this off track for a bit longer, but if your client isn't accepting raw numeric reports (which is what raw *:* returns (for lack of a better expression)), then how does your client handle things like the information returned using /whois ?

Getting back on track, I agree that this identifier would fit with the rest of the new .idle identifiers
Posted By: The_JD Re: $server().idle - 22/07/08 10:36 AM
raw *:*:{
echo -st $1-
}

My bad, I had used a ";" instead of ":"
Posted By: RusselB Re: $server().idle - 23/07/08 12:00 AM
that would explain why it didn't work previously, and still makes my suggestion valid.
© mIRC Discussion Forums