mIRC Home    About    Download    Register    News    Help

Print Thread
Autologin on Undernet's X #111025 12/02/05 02:30 PM
Joined: Aug 2004
Posts: 26
D
Danko Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2004
Posts: 26
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....?

Re: Autologin on Undernet's X #111026 12/02/05 02:41 PM
Joined: Sep 2003
Posts: 112
E
elegantlywasted Offline
Vogon poet
Offline
Vogon poet
E
Joined: Sep 2003
Posts: 112
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

Re: Autologin on Undernet's X #111027 12/02/05 02:47 PM
Joined: Jun 2003
Posts: 5,024
M
Mentality Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
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,


Mentality/Chris
Re: Autologin on Undernet's X #111028 12/02/05 03:05 PM
Joined: Aug 2004
Posts: 26
D
Danko Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2004
Posts: 26
Cool smile
How can I make it retry after 60 seconds if it doesnt get a notice from X ?

Re: Autologin on Undernet's X #111029 12/02/05 03:25 PM
Joined: Sep 2003
Posts: 112
E
elegantlywasted Offline
Vogon poet
Offline
Vogon poet
E
Joined: Sep 2003
Posts: 112
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

Re: Autologin on Undernet's X #111030 12/02/05 05:59 PM
Joined: Dec 2002
Posts: 145
G
gemeau50 Offline
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
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