mIRC Home    About    Download    Register    News    Help

Print Thread
$chan().idle $query().idle $chat().idle and MORE! #56906 23/10/03 12:29 PM
Joined: Feb 2003
Posts: 2,669
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,669
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!
Re: $chan().idle $query().idle $chat().idle and MORE! #56907 23/10/03 12:34 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
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
Re: $chan().idle $query().idle $chat().idle and MORE! #56908 23/10/03 12:45 PM
Joined: Feb 2003
Posts: 2,669
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,669
It would return 0. grin


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: $chan().idle $query().idle $chat().idle and MORE! #56909 23/10/03 12:46 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
good point wink


new username: tidy_trax
Re: $chan().idle $query().idle $chat().idle and MORE! #56910 23/10/03 12:57 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
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
Re: $chan().idle $query().idle $chat().idle and MORE! #56911 23/10/03 02:54 PM
Joined: Sep 2003
Posts: 5
N
nomak Offline
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
Re: $chan().idle $query().idle $chat().idle and MO #56912 23/10/03 03:21 PM
Joined: Oct 2003
Posts: 3
T
thewhisper Offline
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.

Re: $chan().idle $query().idle $chat().idle and MO #56913 23/10/03 06:42 PM
Joined: Sep 2003
Posts: 149
S
Stealth Offline
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
Re: $chan().idle $query().idle $chat().idle and MORE! #56914 17/04/04 05:08 AM
Joined: Feb 2003
Posts: 2,669
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,669
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!
Re: $chan().idle $query().idle $chat().idle and MO #56915 26/08/04 06:05 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
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