mIRC Home    About    Download    Register    News    Help

Print Thread
#111400 15/02/05 01:53 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Code:
on 1:text:!idle *:#: {
  .whois $2 $2
  set %idlechan $chan
}
raw 317:*: {
  msg %idlechan $deltok($deltok($1-,5-8,32),1-3,32)
  unset %idlechan
}


It returns a large number, i assume in seconds so i tried to wrap $duration() around it and it came up with more than the actual idle time. Can someone help me out? smile

#111401 15/02/05 01:55 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
msg %idlechan $duration($3)


Gone.
#111402 15/02/05 01:59 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
lol so much simpler, it works, thanks fiber

#111403 15/02/05 02:02 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Welcome,

btw you could add a small flood protection so that people can't abuse this script. Perhaps also a little something to not do a whois x times in y seconds on the same person, or an amount of z people.

These are only suggestions though, it's your script smile

Cya


Gone.
#111404 15/02/05 02:04 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
im just messing around with different stuff in mirc script..i dont plan on using it too much

#111405 15/02/05 02:37 PM
Joined: Dec 2002
Posts: 83
D
Babel fish
Offline
Babel fish
D
Joined: Dec 2002
Posts: 83
Don't forgot to make at the end of a raw a "halt" command to stop the default display


Link Copied to Clipboard