mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 2,812
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
.joined could be a problem, what if you join after them?


new username: tidy_trax
Joined: Feb 2003
Posts: 2,812
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
It would return 0. grin


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
good point wink


new username: tidy_trax
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Nice suggestions, useful and easy to implement. I definitely agree.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Sep 2003
Posts: 5
N
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
N
Joined: Sep 2003
Posts: 5
very nice ideas, they definately will be very useful. specially if khaled is kind enough to implement them in the next version smile


nomak
Joined: Oct 2003
Posts: 3
T
Self-satisified door
Offline
Self-satisified door
T
Joined: Oct 2003
Posts: 3
Excellent ideas, now if we can just convince khaled to use them, we're flying.

Joined: Sep 2003
Posts: 149
S
Vogon poet
Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
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.


mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org
Joined: Feb 2003
Posts: 2,812
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
I wish to ammend my suggestion...

Quote:
.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.

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

If the user was in the channel before you joined, it should return $null


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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


Those who fail history are doomed to repeat it

Link Copied to Clipboard