mIRC Home    About    Download    Register    News    Help

Print Thread
#190549 22/11/07 03:39 PM
Joined: Jan 2004
Posts: 509
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
I'd like a way to easily return the duration a person has been in the channel.

I noticed there's the .idle property in $nick(), which returns the idle. But there's no way to return the duration that the person has joined the channel. Although the .idle property is nice (which can be while looped to who's been idle the longest to the least), it would also be nice to while loop th duration to who's been in the channel the longest to least.

Also, I noticed the .idle property starts from 0 everytime you join a channel. If a person has been idle from the moment you joined, then the .idle property just returns how long you have been in the channel. It shouldn't return anything since mIRC doesn't know the idle time of the user.. It should start from user the moment the user said something, rather than start from 0 when you joined the channel. (Or maybe it could say minimum of..) so you know this person hasn't said anything since.

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

I would like to have a .dur property too.

Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
The only way to get this information reliably is to '/whois' every member of the channel. This is just un-necessary load on the server for something so simple that very few people will actually use.

I don't think it's necessary.

Joined: Jan 2004
Posts: 509
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Originally Posted By: Bekar
The only way to get this information reliably is to '/whois' every member of the channel. This is just un-necessary load on the server for something so simple that very few people will actually use.

I don't think it's necessary.


Does mIRC whois everyone in the channel to return the idle time for the .idle property? I don't think so.

And the /whois doesn't return the time that a person joined a channel either.

-Neal.

Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
hi neal

yes i want this!


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
Joined: Nov 2007
Posts: 7
Y
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
Y
Joined: Nov 2007
Posts: 7
hmm. What if you had joined AFTER they had? i dont think mIRC could figure out how long they were in there if they were there before you now would it? although i may be wrong =\

Joined: Jan 2004
Posts: 509
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Originally Posted By: Yosshi
hmm. What if you had joined AFTER they had? i dont think mIRC could figure out how long they were in there if they were there before you now would it? although i may be wrong =\


That's the exact same thing with the .idle property. A .dur property wouldn't be that different.

So the .idle property will reset to 0 on an on text event, whereas the .dur property will reset to 0 on an on join event.


Link Copied to Clipboard