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

Last edited by Raccoon; 23/10/03 01:09 PM.

Well. At least I won lunch.
Good philosophy, see good in bad, I like!