mIRC Homepage

$chan().idle $query().idle $chat().idle and MORE!

Posted By: Raccoon

$chan().idle $query().idle $chat().idle and MORE! - 23/10/03 12:29 PM

I'd like to suggest that, in addition to $nick($chan,$nick).idle, we could have an idle property for other relevant identifiers.

$chan($chan).idle == seconds since someone last spoke/actioned/ctcp'd in $chan
$query($nick).idle == seconds since $nick last /msg'd or /describe'd or ctcp'd you.
$chat($nick).idle == seconds since anything was received via DCC Chat from $nick

I see this latter feature was just suggested the other day, but my original suggestion came from the lack of $chan().idle, which would be extremely handy for identifying channels to auto-minimize or auto-hide, or even auto-part based on their activity or thereof.

Other properties I would like to see on $chan, $query, $chat and $nick($chan,$nick):

  .lines : keeps a running total of text/action events ($lines is useless as it counts the total of displayed lines, including events and wordwrap)
  .words : keeps a running total of words spoken in text/action events.
  .opened : returns the $ctime value when $chan $query $chat were opened.
  .joined : returns the $ctime value when $nick joined $chan. ($nick($chan,$nick).joined)

The inclusion of these properties ought to have little additional effect on mIRC's CPU consumption, but will greatly reduce the CPU consumption for the plethora of scripts that attempt to track this information themselves. Scripts that would benifit from these properties are flood kickers, idle kickers, stats bots and channel-friendly info bots which take channel activity into consideration before displaying repetative information.

These statistics can help identify users who have greater channel participation, and possibly grant them greater access the channel's resources. It can also be used to identify spammers-- users who just .joined recently and post an URL or #chan in their first 2 or 5 .lines. It can also be used to report On Join /msgs sent by users in a channel you just .opened, among countless other uses!

I know this post is asking for a lot, but I would be humbled if it took 3 years to add these... as long as they are added sometime. smirk

- Raccoon
Posted By: pheonix

Re: $chan().idle $query().idle $chat().idle and MORE! - 23/10/03 12:34 PM

.joined could be a problem, what if you join after them?
Posted By: Raccoon

Re: $chan().idle $query().idle $chat().idle and MORE! - 23/10/03 12:45 PM

It would return 0. grin
Posted By: pheonix

Re: $chan().idle $query().idle $chat().idle and MORE! - 23/10/03 12:46 PM

good point wink
Posted By: qwerty

Re: $chan().idle $query().idle $chat().idle and MORE! - 23/10/03 12:57 PM

Nice suggestions, useful and easy to implement. I definitely agree.
Posted By: nomak

Re: $chan().idle $query().idle $chat().idle and MORE! - 23/10/03 02:54 PM

very nice ideas, they definately will be very useful. specially if khaled is kind enough to implement them in the next version smile
Posted By: thewhisper

Re: $chan().idle $query().idle $chat().idle and MO - 23/10/03 03:21 PM

Excellent ideas, now if we can just convince khaled to use them, we're flying.
Posted By: Stealth

Re: $chan().idle $query().idle $chat().idle and MO - 23/10/03 06:42 PM

I can definatly use some of these things in my own script. It would inprove my performance too, and fix alot of problems within my script.
Posted By: Raccoon

Re: $chan().idle $query().idle $chat().idle and MORE! - 17/04/04 05:08 AM

I wish to ammend my suggestion...

.opened : returns the $ctime value when $chan $query $chat were opened.
.joined : returns the $ctime value when $nick joined $chan. ($nick($chan,$nick).joined)

Instead, I wish for these to return the number of seconds since they joined or window creation... identical to .idle.

$nick(Raccoon,#mIRC).joined == 5
Raccoon joined 5 seconds ago.

If the user was in the channel before you joined, it should return $null
Posted By: landonsandor

Re: $chan().idle $query().idle $chat().idle and MO - 26/08/04 06:05 AM

while this is old, I just found it cause I was thinking of making this suggestion. What I want to see (if nothing else) is:

$query($nick).idle and $chat($nick).idle
© 2020 mIRC Discussion Forums