mIRC Home    About    Download    Register    News    Help

Print Thread
#111400 15/02/05 01:53 PM
Joined: Mar 2004
Posts: 358
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 358
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,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
msg %idlechan $duration($3)

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

#111403 15/02/05 02:02 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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

#111404 15/02/05 02:04 PM
Joined: Mar 2004
Posts: 358
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 358
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
D
dunkelzahn
dunkelzahn
D
Don't forgot to make at the end of a raw a "halt" command to stop the default display


Link Copied to Clipboard