mIRC Home    About    Download    Register    News    Help

Print Thread
#124604 08/07/05 10:47 PM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
hey guys i am looking for a remote that will check for an idle time of 1hr for all chatters and all ops in my channel.i would like it to send them a notice 5 mins before they are kicked saying that they have 5mins to chat or be kicked.is this possible?i also have 3 bots in the channel which i do not want included in the idle kick is there a way to do that as well?not really sure how an idle kicker would work so if you need any more info i will be glad to give you want you need,thanks in advance...you guys are the best!thanks

#124605 09/07/05 12:17 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
CLICK HERE

the search tool has that (among others)

#124606 09/07/05 01:04 AM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
thanks i will try the link,i tryed the search feature and did not find what i was looking for,that is why i posted.thanks

#124607 09/07/05 04:34 AM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
ok i have this now,but nothing seems to be working,is there some way to test it to see if it is actually doing something?i have it saved on a .txt file in my mirc directory,same as all my other remotes....but i have no idea if it is actually working......

on :*:join:#channel: {
set %scan.idle.time 900
$+(.,timerscan.idle.,$chan) 0 30 scanidle $chan
}
on :*:part:#channel: {
$+(.,timerscan.idle.,$chan) off
}
alias scanidle {
var %x = 1
while ( %x <= $nick($1,0) ) {
if ( $nick($1,%x,v).idle >= %scan.idle.time ) && ( $nick($1,%x,v) != $me ) {
kick $1 $nick($1,%x,v) Anti-idle-kick
}
inc %x
}
}


and also is the 900 is the amout of idle time before it kicks?sorry i am completely lost with this one..please help..thanks confused

#124608 09/07/05 09:42 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on !*:join:#channel: { 
$+(.timeridle.,$chan) 0 30 scanidle $chan 
} 
alias scanidle { 
var %x = 1 
while ( %x &lt;= $nick($1,0,v) ) { 
if ( $nick($1,%x,v).idle &gt;= 900) &amp;&amp; ( $nick($1,%x,v) != $me ) { 
kick $1 $nick($1,%x,v) Anti-idle-kick 
} 
inc %x 
} 
} 
  


You have an extra : in your on join & on part events. I removed them in the above code. The 900 is the amount of time the person has to be idle in the room before being kicked (equal to 15 minutes). No need to set a variable for that, since it can be hard coded just as easily. Since you want the timer to check idle times every 30 seconds (according to the code), you don't want to shut off the timer when someone parts the room. So I removed the ON PART event

I did notice that your code only checks the idle time of those that are voiced. In that regard, I altered the while line so that it only references those in the room that are voiced. Might not make any difference, but might speed things up if you have a lot in the room that are ops, hops, or regulars .

#124609 09/07/05 11:02 AM
Joined: Dec 2004
Posts: 87
I
Babel fish
Offline
Babel fish
I
Joined: Dec 2004
Posts: 87
set %scan.idle.time 900 = 900 minnits
that would make it 15 hours

#124610 09/07/05 01:00 PM
Joined: Sep 2004
Posts: 59
M
MrDoom Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: Sep 2004
Posts: 59
thanks russelb it works great now,thanks alot,and thanks for the explanation now i actually understand it too.

#124611 09/07/05 01:30 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
idle time, like all other timings in mIRC default to seconds, not minutes

#124612 09/07/05 03:22 PM
Joined: Dec 2004
Posts: 87
I
Babel fish
Offline
Babel fish
I
Joined: Dec 2004
Posts: 87
ahhhh didn't know that , now i know smile


Link Copied to Clipboard