Inactivity Report
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 5.7 (of 3 scores) |
| Date Added | Dec 28, 2008 |
| Last Updated | Dec 28, 2008 |
| Tags | idle inacitivity inactive mirc report |
Introduction

This script returns the percentage and names of inactive users. It does this by doing a '/whois' and then using the data.
The instructions are inside the code.
mIRC Snippet:
Inactivity Report
Posted on Dec 28, 2008 7:19 pm
Posted on Dec 28, 2008 7:19 pm
| Code: |
| if (%active.trigger != $null) |
You could just do:
| Code: |
| if (%active.trigger) |
mIRC Snippet:
Inactivity Report
Posted on Dec 28, 2008 9:44 pm
Posted on Dec 28, 2008 9:44 pm
Is this for specific channels? Or of the entire server?
If its just a channel, instead of whois'ing everyone, you can use $duration($nick($chan,%x).idle) to return the idle time of a user
If its just a channel, instead of whois'ing everyone, you can use $duration($nick($chan,%x).idle) to return the idle time of a user
mIRC Snippet:
Inactivity Report
Posted on Dec 28, 2008 10:27 pm
Posted on Dec 28, 2008 10:27 pm
i would say its for channels you are on.
niice snippet vSkyzv
7 from me
niice snippet vSkyzv
7 from me
mIRC Snippet:
Inactivity Report
Posted on Dec 28, 2008 11:57 pm
Posted on Dec 28, 2008 11:57 pm
Thanks for the comments.
@NIGathan
Could you give me a general idea on how to use that? I'm always looking forward to shortening my code.
@NIGathan
Could you give me a general idea on how to use that? I'm always looking forward to shortening my code.
mIRC Snippet:
Inactivity Report
Posted on Dec 29, 2008 12:02 am
Posted on Dec 29, 2008 12:02 am
Well, you can setup a while loop to loop through all the users, I dont know what you do with that info, but heres an example of making a token set with every user and there idle time in the "nick=idletime,nick2=idletime" format.
Use: $idlechan(#channel)
| Code: |
| alias idlechan { var %x 1 while (%x <= $nick($1,0)) { var %idle $addtok(%idle,$+($nick($1,%x),=,$nick($1,%x).idle),44) inc %x } return %idle } |
Use: $idlechan(#channel)
mIRC Snippet:
Inactivity Report
Posted on Dec 29, 2008 12:04 am
Posted on Dec 29, 2008 12:04 am
That will return the idle in seconds, to get this into formatted time, use $duration, for more info see: /help $duration and /help $nick
mIRC Snippet:
Inactivity Report
Posted on Dec 29, 2008 12:37 pm
Posted on Dec 29, 2008 12:37 pm
For some reason $nick(<channel>,<order>).idle is inaccurate when the idle time of a user is in hours.
Example 1:
I whois'd myself and got an idle time of "7 seconds".
I then used $nick and it also echoed "7".
However when I did it to a person who was inactive for 9+ hours, it echoed "1096". If you do the math there are 32,400 seconds in 9 hours, which means something is wrong.
Example 1:
I whois'd myself and got an idle time of "7 seconds".
I then used $nick and it also echoed "7".
However when I did it to a person who was inactive for 9+ hours, it echoed "1096". If you do the math there are 32,400 seconds in 9 hours, which means something is wrong.
mIRC Snippet:
Inactivity Report
Posted on Dec 30, 2008 12:21 am
Posted on Dec 30, 2008 12:21 am
Its not inaccurate, its merely channel based. The idle time in the whois is server based. So if they talk anywhere, it changes. Also if you just joined the channel and the person you are getting the idle time for hasnt spoken since youve been in there, it will return the time since you joined.





