mIRC Home    About    Download    Register    News    Help

Print Thread
Automatic identify? #208720 27/01/09 03:43 PM
Joined: Jan 2009
Posts: 2
E
espy Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Jan 2009
Posts: 2
Is there anyway that I can have mIRC automatically identify myself with a server so I don't have to type "/msg nickserv identify password" every time I connect?

Re: Automatic identify? [Re: espy] #208721 27/01/09 04:29 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Something like...
Code:
on *:NOTICE:*This nickname is registered and protected*:?:{
  if ($nick == NickServ) && ($network === xxxx) { .msg NickServ identify <password> }
}

Where xxxx is what you get if you do //echo -a $network in your server window.
This goes into Remote (Alt+R).

Re: Automatic identify? [Re: espy] #208724 27/01/09 05:14 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Because there are so many different servers and versions of IRC, not to mention edited IRC's, your server may send different messages.

For instance, on one server I wait for a raw 512, on another server I use notice and wait for if ($6 == protected.).

But typically they all let you know with the logon event.

on ^*:logon:*:{ }

Re: Automatic identify? [Re: DJ_Sol] #208725 27/01/09 05:18 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
The on LOGON event triggers when mIRC sends its first commands (NICK, USER, and PASS) to the IRC server. It has nothing to do with logging on to network services.

Re: Automatic identify? [Re: 5618] #208754 28/01/09 12:23 AM
Joined: Jan 2009
Posts: 2
E
espy Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Jan 2009
Posts: 2
Thanks for the help guys, ^^. Managed to get it working when I logged on.

Re: Automatic identify? [Re: Collective] #208996 02/02/09 09:55 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Funny, it works for me! smile

Re: Automatic identify? [Re: DJ_Sol] #208997 02/02/09 10:12 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
No, it doesn't. If you actually read the help it tells you exactly what it does:
Originally Posted By: mirc.hlp
The on LOGON event triggers before and after mIRC sends the standard PASS, NICK, and USER messages to the server.


There's no magical services support here, and servers don't tap into this event specifically for services authentication. If it "works" for you it's because you're sending a command on connect, which is how you automatically identify anyway.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Automatic identify? [Re: argv0] #209029 03/02/09 01:36 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Two of the servers I connect to, I identify with the logon event.

Whats the problem?

Reading the description, WHICH I ACTUALLY READ, it says it triggers BEFORE and after.

Some servers I use a notice event, some I use a raw and some I use the LOGON event. tired

Re: Automatic identify? [Re: DJ_Sol] #209030 03/02/09 01:42 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You said that the server "let you know" when to login to network services via the on LOGON event

You were wrong. The on LOGON event has nothing to do with network services.

Re: Automatic identify? [Re: Collective] #209032 03/02/09 01:55 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
On the servers that didnt send me something to tell me it was ready to auth I used the logon event. In that sense, the server is telling me its ready to auth. Yes, I'm more assuming it;s ready ... It works, whats wrong with that?

Re: Automatic identify? [Re: DJ_Sol] #209045 03/02/09 03:33 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
What's wrong is that you said that the purpose of on LOGON was to trigger when people could logon to network services. That is misinformation.

The fact it happens to work for you is coincidence, on many networks you will simply receive an error message if you try to do anything except NICK USER PASS before raw 001 is sent.

Re: Automatic identify? [Re: Collective] #209060 03/02/09 07:59 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
I said it was the purpose of the logon event?

I believe my point was that depending on the server there are different events to look for to know when to identify yourself. I said some I use a raw, some I use the notice and some I use the logon event.

I dont understand why you are arguing with me. I didnt say that that is its purpose, I just gave them some information to work with. It works for me on some servers so its worth a shot if they dont see a raw or a notice or something else telling them to auth.

I believe the term here would be "Look outside the box".

Re: Automatic identify? [Re: DJ_Sol] #209063 03/02/09 08:09 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Apparently you have serious issues over accepting that you might be wrong, both on this thread and on your $cid monstrosity.

-snip-

Last edited by Collective; 03/02/09 09:14 PM.
Re: Automatic identify? [Re: Collective] #209064 03/02/09 08:10 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
shut the fuck up? It works, maybe you need to get over it?

Re: Automatic identify? [Re: DJ_Sol] #209065 03/02/09 08:13 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
I freely admit that I have trouble "getting over" rambling idiots like yourself. That doesn't excuse your idiocy.

...and on LOGON doesn't work for services logins in most cases. on CONNECT is the better alternative.

Re: Automatic identify? [Re: Collective] #209084 03/02/09 11:15 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Code:
on ^*:logon:*:{
  if ($server != 24.215.5.3) { return }
.raw loginh email $md5(password) | .raw authtype $+(ircwx1,$crlf,user) $me $me $me $+(:,$v_) | halt
}

Re: Automatic identify? [Re: DJ_Sol] #209088 03/02/09 11:39 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
If the only example you could find was Buzzen (which runs a heavily modified version of the IRC protocol) then I was right when I said that on LOGON is unsuitable for most networks. You, however, said "but typically they all let you know with the logon event."