mIRC Home    About    Download    Register    News    Help

Print Thread
#190549 22/11/07 03:39 PM
L
LostShadow
LostShadow
L
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.

#190550 22/11/07 03:47 PM
Joined: Dec 2002
Posts: 1,997
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,997

I would like to have a .dur property too.

#190576 22/11/07 09:18 PM
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.

L
LostShadow
LostShadow
L
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.

#190586 23/11/07 12:06 AM
Joined: Feb 2006
Posts: 523
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 523
hi neal

yes i want this!


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
Y
Yosshi
Yosshi
Y
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 =\

#190590 23/11/07 01:20 AM
L
LostShadow
LostShadow
L
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