|
|
Joined: Apr 2004
Posts: 18
Pikka bird
|
OP
Pikka bird
Joined: Apr 2004
Posts: 18 |
need script ON CONNECT ... i want when my Script Connect To irc server to wait 3 minutes then do /msg x@channels.undernet.org login username pass
|
|
|
|
Joined: Apr 2006
Posts: 464
Fjord artisan
|
Fjord artisan
Joined: Apr 2006
Posts: 464 |
Try this
on *:CONNECT:{
timer-login-on-connect 180 1 .msg x@channels.undernet.org login username pass
}
Copy and paste in your remotes window (ALT + R). Good luck
|
|
|
|
Joined: Apr 2004
Posts: 18
Pikka bird
|
OP
Pikka bird
Joined: Apr 2004
Posts: 18 |
is there another choice ? i mean not "timer-login-on-connect" something like SET , INC , IF .... etc ??? or anything
|
|
|
|
Joined: Apr 2006
Posts: 464
Fjord artisan
|
Fjord artisan
Joined: Apr 2006
Posts: 464 |
Well, yeah you can make it very complicated, but this is the basic version, that should do what you want.
You could add: if ($network iswm Undernet) { timer blah (like before) }
etc, but the previous code does what you wanted...
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
That code would send the same command every second for 3 minutes, not wait 3 minutes then send the command once. Corrected on *:connect:{ .timer 1 180 .msg x@channels.undernet.org login username pass }
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
The only way of guaranteeing a 3 minute delay after you connect before the message is sent, is by using a timer.
|
|
|
|
Joined: Apr 2006
Posts: 464
Fjord artisan
|
Fjord artisan
Joined: Apr 2006
Posts: 464 |
lol true. oops.... :tongue:
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
|
|
|
|
Joined: Feb 2006
Posts: 181
Vogon poet
|
Vogon poet
Joined: Feb 2006
Posts: 181 |
on 1:connect:{ if ($network == UnderNet) { .timer 1 60 /msg x@channels.undernet.org login username password | halt } }
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
I wasn't aware of that code, hixxy, I'll try to keep it in mind for future reference.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
While that would ensure that it only worked for the Undernet network, it only does a one minute delay, and the original request was for a 3 minute delay. Also the halt is irrelevant
|
|
|
|
|
|