mIRC Home    About    Download    Register    News    Help

Print Thread
#188491 24/10/07 10:26 PM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
hello

in order to use a virtual host in Undernet, you need to connect then type /msg X@channels.undernet.org login username password, and then type /mode nickname-here +x

but I already have this script:
Code:
on *:start: {
  window -x "Status Window"
  showmirc -m
  /s -m irc.serv4.net -j #a,#b
  /s -m us.undernet.org -j #d,#w,#e
  /s -m chat.serv2.com -j #b 
}


can you tell me please how to encorporate the above procedure in the above script?

please note that I want to first use the vhost and then join to any channels in undernet

thanks

Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Add a new event for the connection:

Code:
ON *:CONNECT: {
  if ($network == undernet) {
    .msg X@channels.undernet.org login username password
    .timer 1 5 .mode $!me +x
  }
}

I don't know what the response from X is, so using a timer here is a shortcut way of doing it. The longer way would be to change the mode upon receipt of X's response.

Bekar #188501 25/10/07 12:55 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
You don't need the timer, just set mode +x at the same time.
Code:
on *:connect: {
  if ($network == undernet) {
    .msg x@channels.undernet.org login username password
    mode $me +x
  }
}

deegee #188512 25/10/07 03:27 AM
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
*nod* ok. I've not used X, so took my queue from some nickserv services I have used which have small delays.. wink


Link Copied to Clipboard