mIRC Homepage
Posted By: nataliad undernet x login - 24/10/07 10:26 PM
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
Posted By: Bekar Re: undernet x login - 24/10/07 10:42 PM
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.
Posted By: deegee Re: undernet x login - 25/10/07 12:55 AM
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
  }
}
Posted By: Bekar Re: undernet x login - 25/10/07 03:27 AM
*nod* ok. I've not used X, so took my queue from some nickserv services I have used which have small delays.. wink
© mIRC Discussion Forums