mIRC Home    About    Download    Register    News    Help

Print Thread
#109369 28/01/05 11:18 AM
Joined: Dec 2004
Posts: 8
S
Smrcek Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2004
Posts: 8
hello,

i have already succesfully halted most of the whois output. but what code to halt when i get message form server "(nick) is away (description)"

Code:
 
raw 311:*:/halt
raw 318:*:/halt
raw 317:*:/halt
raw 319:*:/halt
raw 312:*:{ /some code here that stores certain info about the server }
 


it isnt very necesary, but still when whoising 50 people alltogether it would be nice if the script would do it all without echoing "user is away (...)" every second line to status.

#109370 28/01/05 11:53 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Why on earth are you whoising 50 ppl at once?
It's raw 301 you're chasing.

#109371 28/01/05 01:09 PM
Joined: Dec 2004
Posts: 8
S
Smrcek Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2004
Posts: 8
thanks! it works

it's an evil project wink
www.uptimer.org - for every uptime competition, 3 days in the competition when only like 50 stable clients are still connected, i will whois them all and then when each client drops, the system will record when it dropped and which server the client was using.

#109372 28/01/05 11:00 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
If all you want is the server try using /who <nick> - it's only a 1 line reply.
Code:
raw 352:*:{
  ;do stuff with the server data in $5
  halt
}

#109373 29/01/05 12:29 AM
Joined: Dec 2004
Posts: 8
S
Smrcek Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2004
Posts: 8
thanks for the code optimization smile

another problem, is there a way to hide output in status when /timer1somenick ... in a script?
i tried .timer1 but it still echoes everything

Last edited by Smrcek; 29/01/05 12:31 AM.
#109374 29/01/05 12:36 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
What output do you mean? The dot prefix (.timerblah ..) should hide
  • -
    * Timer blah activated
    -
    * Timer blah halted
    -


Link Copied to Clipboard