mIRC Homepage
Posted By: Minihero Script question - 03/09/04 05:11 PM
Hi all, i'm pretty new to IRC and would like to ask a question about scripting laugh

Right so i'm trying to get my irc to automatically log into the specific server and also do the /nicserv IDENTIFY command so it logs me into my own user.

Ive managed to get it to do it for seperate F keys but i want it to login and put log me into my nick all in one F key laugh

Any help you can give eould be very much appreciated laugh

Jim
Posted By: Mentality Re: Script question - 03/09/04 05:44 PM
You don't really need a F-key to connect - you can set it in mIRC Options to auto-connect when you start mIRC: ALT+O > Connect > Options - Check the box 'Connect on startup'.

You can split commands up with a | (break line). For example, you may type:

/alias F2 server irc.someserver.net | .timerident 1 5 nickserv identify password

The reason I put the timer there is because you'll need to take the time to logon to the server before you can identify, so you can't do it straight away. This will wait 5 seconds, you may wish to extend it to something like 10 seconds if it takes you awhile before you connect.

Still, this is better dealt with either the Perform section - /help Perform (accessed via ALT+O > Connect > Options > [Perform...]) or via an ON CONNECT event. For example:

on *:connect:{
nickserv identify password
}


Something like this would go in your Remote section - ALT+R. Also see /help on connect.

Hope that helps!

Regards,
Posted By: Minihero Re: Script question - 03/09/04 05:50 PM
Ah cheers dude laugh

Ill give some of that a try now. The timer bit was the bit i was getting wrong laugh

But the reason i wanna put it on F keys is because ive got a few different chat rooms on different servers. So i want to get easy access to all my chats with the F keys laugh

Ill have a mess around with them other options as well well though because im still getting used to it at the minute and its good just messing around and trying new things anyway. laugh

Cheers for your help anyway mate, very much appreciated smile
Posted By: Mentality Re: Script question - 03/09/04 05:55 PM
You could easily script such a thing, with the ON START event and ON CONNECT event put together.

See this thread for an example script which explains how to do it fully. Also see /help on start.

No problem, of course!

Regards,
Posted By: Minihero Re: Script question - 03/09/04 06:05 PM
Ah wicked laugh I didnt know you would be able to do it lol

Ill have a look at that site now then laugh

Wont even have to press the F key then laugh that will make me even more lazy lol
Posted By: Turbo_boy Re: Script question - 03/09/04 06:34 PM
There is an auto identify script, if nickserv is on the server and you are registered on it the script will auto login to nickserv. Founded here

If you set the password it will be Decrypted so you can't see the password @ll :P
Posted By: Minihero Re: Script question - 03/09/04 06:42 PM
Right i've got this

on *:start:{
server irc.webchat.org
}
on *:connect:{
nickserv IDENTIFY <password>
}

And it still doesnt like logging in :| something ive done wrong?

And Turbo i dont really wanna use those kind of auto scripts i prefer to find out for myself how to do it and do it that way. Then i actually learn how to do the stuff. Thanks anyway though laugh
Posted By: whatsthedillio Re: Script question - 03/09/04 07:06 PM
on *:START: { server irc.server.net }
on *:CONNECT: { .msg nickserv identify password }

that works fine for me
:P
im not sure anything has changed in your script and mine
maybe because
connect and start are cpaitals in mine and not yours
i dunno if that matters or not but thats how it
is in the help file
yours should work if thats not the problem
:P
Posted By: Minihero Re: Script question - 03/09/04 07:43 PM
Hmm :s thats not working for me :|

Where are you entering this? In the remorte bit of scripting? Or in the perform option bit?
Posted By: whatsthedillio Re: Script question - 03/09/04 07:50 PM
In The Remotes Section Past It In (Alt + R)
did you do that?
if not then thats the reason
but if you loaded it in your remotes
and it still doesnt work it
maybe you should reinstall mIRC or Reinstall the script
you are using
but it should work
:P

Posted By: Coolkill Re: Script question - 03/09/04 08:05 PM
Also just to add if your on a network that supports /nickserv commands, as most do, use,

Instead of using /msg nick identify password

You can use the following as it is more secure than the above;

/nickserv identify [color:red]password[/color]

And finally, if your network (for example DALnet) supports identifying to a nickname, without you having to be currently using it, use;

/nickserv identify [color:red]nickname password[/color]

As that will prevent errors, for example if your not using the nickname the password matches to.

Eamonn.
Posted By: Minihero Re: Script question - 04/09/04 03:22 AM
Cheers for all your help guys laugh

Got it working now wooo

You've been a great help laugh i think this new irc thing may kep me busy for a while anyway lol

mucho thanko's, Jim smile
© mIRC Discussion Forums