mIRC Homepage
Posted By: Danko Autologin on Undernet's X - 12/02/05 02:30 PM
Hi, got a little question..

Code:
on *:CONNECT: { 
  if ($network == undernet) {
    .msg x@channels.undernet.org login mynick mypass
    .mode $me +xi
etc.
}

How can I modify this so it halts until it get confirmation from X that i'm logged in? I dont want to join any channels before my host is masked.. So, something like halt until notice from x mynick.users.undernet.org is now your hidden host, or else wait xx seconds and then try again....?
Posted By: elegantlywasted Re: Autologin on Undernet's X - 12/02/05 02:41 PM
very simple....

the X sends notice when it accepts your login and the message is always same ....

use on notice
if the notice is from x and matches then you join #channel1,#channel2......#channeln

/help on notice


walk in light smile
Posted By: Mentality Re: Autologin on Undernet's X - 12/02/05 02:47 PM
on *:notice:*Welcome*:?:{
if ($nick == X) && ($network == Undernet) {
join #channel1,#channel2,#channel3,#channel4,#etc
}
}


For further info see /help ON NOTICE

Personally, I find that using the Perform section is useful for such a thing. I created an /undernet alias like the following:

/alias undernet msg x@channels.undernet.org login username pass | mode $me +x

Then do the following in the Perform section (ALT+O > Connect > Options > [Perform...]):

1. Click on 'Add' and choose to add 'Undernet'.
2. Go to 'Undernet' from the drop down list
3. Add the following to the box:
/undernet
/join #channel1,#channel2,#channel3
4. Check the box at the top to enable perform.

I find that the channels are not joined until I have been authed and +xed smile

As an FYI, I believe Undernet will +i you automatically when you connect, however, you can also check the box 'Invisible mode' in ALT+O > Connect to be set +i automatically.

Regards,
Posted By: Danko Re: Autologin on Undernet's X - 12/02/05 03:05 PM
Cool smile
How can I make it retry after 60 seconds if it doesnt get a notice from X ?
Posted By: elegantlywasted Re: Autologin on Undernet's X - 12/02/05 03:25 PM
you can by using this timer in in the same on connect options where mentality told you ...

/timer 0 60 /undernet

this would repeat the undernet alias after 60 secs

but

i wouldnt do it if i was you ... the reason being X is mostly stable it hardly goes down unless your on a split server... and incase its up you might get kicked out of network for flooding X

so its upto you ...

walk in light smile
Posted By: gemeau50 Re: Autologin on Undernet's X - 12/02/05 05:59 PM
Since you are you using /mode +x, here is how I would do it without bothering X.


on *:CONNECT: {
if ($network == undernet) {
.msg x@channels.undernet.org login mynick mypass
.mode $me +xi
if (%maskactivated) { join #channel1,#channel2,#channel3,#channel4,#etc }
else { jtimer }
}
}

alias -l jtimer timer 1 5 joinchan

alias -l joinchan {
if (%maskactivated) { join #channel1,#channel2,#channel3,#channel4,#etc }
else { jtimer }
}

raw 396:*: set %maskactivated 1 | echo 04 -s UNDERNET MASK ACTIVATED

on *:DISCONNECT: unset %maskactivated
© mIRC Discussion Forums