mIRC Home    About    Download    Register    News    Help

Print Thread
#118814 29/04/05 12:17 PM
Joined: Mar 2005
Posts: 5
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Mar 2005
Posts: 5
Is it possible to make a script that when you type /idle it will check the active channel's persons list for their idle times, and then if they are over 45 minutes idle, it will auto /kill Person with their exact idle time as their idle message:

* Someone has left IRC [Local kill by cburrell82 (Someone has been idle 56mins 21secs, signed on Fri Apr 29 05:52:09 - Do not idle on this network!)]

Thanks guys.

- Christine

Last edited by cburrell; 29/04/05 12:31 PM.
#118815 29/04/05 12:41 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Untested..

Code:
alias idle {
  if ($active ischan) {
    var %x = $nick($active,0) 
    while (%x) {
      if ($nick($active,%x).idle >= 2700) { kill $nick($active,%x) Your idle was $duration($nick($active,%x).idle) }
      dec %x
    }
  }
}


This goes by their idle time in the channel.

-Andy

#118816 29/04/05 12:59 PM
Joined: Mar 2005
Posts: 5
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Mar 2005
Posts: 5
Hmm, would it be possible to have it so it checks the idle time on the server instead of just the channel?

Thanks for your help thus far, you're amazing Slade.

#118817 29/04/05 01:05 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well, you'd have to whois everyone in the channel. smile


Link Copied to Clipboard