mIRC Home    About    Download    Register    News    Help

Topic Options
#202373 - 20/07/08 10:28 PM $server().idle
The_JD Offline
Fjord artisan

Registered: 28/03/06
Posts: 392
Loc: New South Wales, Australia
$server.idle even

If there is one allready, forgive me...

Just thought it would compliment the new .idle properties.
_________________________
[02:16] * Titanic has quit IRC (Excess Flood)

Top
#202374 - 20/07/08 10:31 PM Re: $server().idle [Re: The_JD]
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
Already there: $idle
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#202377 - 20/07/08 10:42 PM Re: $server().idle [Re: starbucks_mafia]
The_JD Offline
Fjord artisan

Registered: 28/03/06
Posts: 392
Loc: New South Wales, Australia
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
_________________________
[02:16] * Titanic has quit IRC (Excess Flood)

Top
#202384 - 21/07/08 01:01 AM Re: $server().idle [Re: The_JD]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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

Top
#202385 - 21/07/08 01:06 AM Re: $server().idle [Re: RusselB]
The_JD Offline
Fjord artisan

Registered: 28/03/06
Posts: 392
Loc: New South Wales, Australia
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.
_________________________
[02:16] * Titanic has quit IRC (Excess Flood)

Top
#202386 - 21/07/08 01:49 AM Re: $server().idle [Re: The_JD]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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.

Top
#202387 - 21/07/08 02:13 AM Re: $server().idle [Re: RusselB]
The_JD Offline
Fjord artisan

Registered: 28/03/06
Posts: 392
Loc: New South Wales, Australia
Yeh, it's a shame that MY raw * dosnt work frown

....does anyone other than myself like this idea? eek


Edited by The_JD (21/07/08 02:17 AM)
_________________________
[02:16] * Titanic has quit IRC (Excess Flood)

Top
#202390 - 21/07/08 04:11 AM Re: $server().idle [Re: The_JD]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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.

Top
#202399 - 21/07/08 11:25 AM Re: $server().idle [Re: RusselB]
The_JD Offline
Fjord artisan

Registered: 28/03/06
Posts: 392
Loc: New South Wales, Australia
Nah, I mean't raw "*" (raw anything)
_________________________
[02:16] * Titanic has quit IRC (Excess Flood)

Top
#202408 - 21/07/08 02:37 PM Re: $server().idle [Re: The_JD]
CtrlAltDel Offline
Hoopy frood

Registered: 15/06/03
Posts: 994
wouldn't that be
raw *:*:
to mean raw anything?
_________________________
I refuse to engage in a battle of wits with an unarmed person. wink

Top
#202409 - 21/07/08 02:43 PM Re: $server().idle [Re: CtrlAltDel]
The_JD Offline
Fjord artisan

Registered: 28/03/06
Posts: 392
Loc: New South Wales, Australia
Yeh...lol

Anyhow.. back to topic:

$server.idle would suit the rest of the new idle $prop's
_________________________
[02:16] * Titanic has quit IRC (Excess Flood)

Top
#202417 - 21/07/08 10:58 PM Re: $server().idle [Re: The_JD]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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

Top
#202431 - 22/07/08 11:36 AM Re: $server().idle [Re: RusselB]
The_JD Offline
Fjord artisan

Registered: 28/03/06
Posts: 392
Loc: New South Wales, Australia
raw *:*:{
echo -st $1-
}

My bad, I had used a ";" instead of ":"
_________________________
[02:16] * Titanic has quit IRC (Excess Flood)

Top
#202462 - 23/07/08 01:00 AM Re: $server().idle [Re: The_JD]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
that would explain why it didn't work previously, and still makes my suggestion valid.

Top