|
Joined: Mar 2006
Posts: 396
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Mar 2006
Posts: 396 |
$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)
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Mar 2006
Posts: 396
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Mar 2006
Posts: 396 |
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)
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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. 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
|
|
|
|
Joined: Mar 2006
Posts: 396
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Mar 2006
Posts: 396 |
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)
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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.
|
|
|
|
Joined: Mar 2006
Posts: 396
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Mar 2006
Posts: 396 |
Yeh, it's a shame that MY raw * dosnt work ....does anyone other than myself like this idea?
Last edited by The_JD; 21/07/08 01:17 AM.
[02:16] * Titanic has quit IRC (Excess Flood)
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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.
|
|
|
|
Joined: Mar 2006
Posts: 396
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Mar 2006
Posts: 396 |
Nah, I mean't raw "*" (raw anything)
[02:16] * Titanic has quit IRC (Excess Flood)
|
|
|
|
Joined: Jun 2003
Posts: 994
Hoopy frood
|
Hoopy frood
Joined: Jun 2003
Posts: 994 |
wouldn't that be raw *:*: to mean raw anything?
I refuse to engage in a battle of wits with an unarmed person.
|
|
|
|
Joined: Mar 2006
Posts: 396
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Mar 2006
Posts: 396 |
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)
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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
|
|
|
|
Joined: Mar 2006
Posts: 396
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Mar 2006
Posts: 396 |
raw *:*:{ echo -st $1- }
My bad, I had used a ";" instead of ":"
[02:16] * Titanic has quit IRC (Excess Flood)
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
that would explain why it didn't work previously, and still makes my suggestion valid.
|
|
|
|
|