mIRC Home    About    Download    Register    News    Help

Print Thread
N
nmhbm
nmhbm
N
So here is my problem:

Whenever I connect to my bnc naturally I need to write in the password.

So the first time I start mIRC it works just fine with this simple line:

on *:start:{ server irc.server.net:port username:password
}

However, reconnecting while still having mIRC running will leave me having to enter the username and passphrase myself.

I was figuring I would be able to solve this with something like this:

on *:connect: {
if ($netowork == ???) {
/quote pass username:password
}
}

I have no idea how to go about finding out what should be put in the network, seeing when I connect to the bnc I am on the network Freequest, but before I am just connecting to the bnc..


Perhaps I'm going about this in the wrong way and there are better ways to solve it, let me know if so smile

Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
mIRC is supposed to use the original server password on reconnect. What version of mIRC are you using? Have you defined your bnc in the server list? Having done so may cause mIRC to try that entry which may not have a password set. Can you open a /debug window to verify the password is not being sent on reconnect?

If you're still having trouble you can use the $servertarget identifier in your connect event to send the pass.

N
nmhbm
nmhbm
N
I'm on 7.41.

When you say that mIRC is supposed to use the origianl server password on reconnect, do you mean I should enter the server password in options -> servers -> irc servers?

Funny thing, I just tried that and it seems to work for one of the 2 bnc's I'm using.

I tried the $servertarget thingy for the other and it "kinda" works. Though it won't execute until I am actually connected, which is after I have entered the password. So it ends up pretty useless anyway.

But it is really weird what happened with the first bnc. What normaly happen is this:

[18:02:07] * Connect retry #427 lennon.mtbnc.us (+12345)
-
[18:02:08] -irc.znc.in- *** You need to send your password. Try /quote PASS <username>:<password>


But now it just connects without giving me the above line. It works good, but I'm not sure why.. And what to do about the other one.

Also, I turned debug on, but where do I find the log file?

N
nmhbm
nmhbm
N
Nevermind, now both seemed to work. I gave the second one some time. I guess it took some time to enter the password for some reason?

Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
In the past it's been a bad idea to define your bnc connections in the server list. I'm not positive on current behavior.

I'm not sure what /debug does without an argument, I usually log to a window: /debug @debug

I know that connecting to my server: /server znc.server.com +9000 memnoch/localhost: (I send my username and a blank password because authentication is done against my client certificate.)

Then reconnecting the password is sent as expected:
Code:
-> irc.server.com QUIT :
-> znc.server.com CAP LS
-> znc.server.com PASS memnoch/localhost:
-> znc.server.com NICK Memnoch
-> znc.server.com USER memnoch 0 * :Memnoch


Instead of using the "on connect" event I think you need to use the "on logon" event to send the pass.


Link Copied to Clipboard