mIRC Home    About    Download    Register    News    Help

Print Thread
#100940 18/10/04 04:08 PM
S
saragani
saragani
S
My mIRC is set to rejoin channels on connect. One of the channels requires nick registeration, so I made a script which automatically sends the password for nickserv.

Since I wanna send the message to nickserv before the On Connect event activates mIRC functions (Like rejoin channels), I wanted to use on ^*:connect, but then it doesn't catch the event.
When using on *:connect, then it sends the join channel command before the message to nickserv, and then the server gives an error that I need to register my nick in order to join that channel, and I need to rejoin the channel manualy.

Is there a solution for this?

10x

#100941 18/10/04 04:43 PM
D
Daedalus
Daedalus
D
Catch the notice from NickServ saying "you are now identified" with the "on notice" event, then have the event join the channels...

#100942 18/10/04 04:47 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
Since the 001 numeric reply comes before the end of MOTD (which is when on connect triggers), you can try something like this:
Code:
raw 1:*: ns identify password

#100943 18/10/04 05:00 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
This is possible only if he uses a scripted auto-rejoin and not mIRC's built-in stuff (like autojoin channels in Favorites, enabled "Rejoin channels on connect" option etc).

#100944 18/10/04 05:00 PM
S
saragani
saragani
S
thanks qwerty, I'm gonna try it.

#100945 18/10/04 05:34 PM
S
saragani
saragani
S
Nope, it doesn't work. I just checked it myself on a channel I have created:

#saragani Cannot join channel (+R)
-
* saragani sets mode: +R

I'm gonna try Daedalus idea by setting mIRC to keep channels open, and then rejoin the channels one by one.

#100946 18/10/04 07:06 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
Hmm too bad. I tested something that I thought is equivalent and it worked for me: I did a
//nickserv identify password | chanserv access #mychannel list
and chanserv replied with the access list, meaning that it recognized my identify command that came right before (otherwise chanserv would have said "access denied")


Link Copied to Clipboard