mIRC Home    About    Download    Register    News    Help

Print Thread
#57288 24/10/03 11:10 PM
S
sk89
sk89
S
How can i write script that will change my nick & identify my nick name with password.

Alais, popup, remote, anything ???

THX

#57289 25/10/03 12:36 AM
P
pheonix
pheonix
P
Code:
on *:connect:{ 
if ($iif($network,$ifmatch,$server) == [color:blue]network/server[/color]) { nickserv identify pass }
}

change the bit in blue

Last edited by pheonix; 25/10/03 01:18 AM.
#57290 25/10/03 01:14 AM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
Quote:
on *:connect:{
if ($iif($scid($activecid).network,$ifmatch,$scid($activecid).server) == network/server) { nickserv identify pass }
}

Please test the code before you post.. this is wrong.
$activecid returns the $cid from the active window. If the active window isn't from the connecting session, you'll have the wrong $network and $server values.

#57291 25/10/03 01:21 AM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
on *:connect:{
if ($network == your network) command to identify with your password here
}

Your network would be the network you hang on (dalnet, undernet, efnet and so on) - if you're not on any of these, please connect, then type //echo -a $network, then use the value that gets echoed. If nothing appears, reply here.

The command to identify [...] would be based on your network services. For example, on the network I hang on we have NickServ and the command would be "nickserv identify mypassword". Different networks could have different commands, like UnderNet, which has X instead of NickServ, and a different identify command. You need to know the proper command for yours.

#57292 25/10/03 08:29 AM
P
pleur
pleur
P
for the actual identify i like to use input-box, so nobody can read the password in your script:

.msg X #channel LOGIN NICKNAME $$?*="Give password"

or

nickserv identify $$?*="Give password"

#57293 25/10/03 08:41 AM
Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
Quote:
Your network would be the network you hang on (dalnet, undernet, efnet and so on)


efnet doesn't have any nickregistration services.

#57294 25/10/03 08:49 AM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
Yup, forgot this. However, it was a mere example.

#57295 25/10/03 08:52 AM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
By the way, I think I overlooked your post, since you're asking for something that changes your nick too..? If so, please reply here with any message you receive from the network you hang on that confirms that your nick must be identified.. because this could vary too. Then we can think of a proper script to automate the identification.

#57296 25/10/03 11:33 AM
Joined: Mar 2003
Posts: 160
M
Vogon poet
Offline
Vogon poet
M
Joined: Mar 2003
Posts: 160
A regular network i attend won't auto identify using the on connect event, and a few others i know so i had to figure another way.

on ^*:LOGON:*:{ seems to counter for that.

#57297 25/10/03 11:43 AM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
This doesn't seem to be what the poster wants. He's most likely talking about another identification request, the one that the nickname service bot sends to him - nothing to do with server passwords.

#57298 25/10/03 02:10 PM
Joined: Mar 2003
Posts: 160
M
Vogon poet
Offline
Vogon poet
M
Joined: Mar 2003
Posts: 160
He needs to be a bit more descriptive, but if it's what i'm thinking, say you get disconnected and return to the server and his orginal nick is in use, and when the ghost finally times out, his nick will change automatically and auto identify him, ie; if he is away from the keyboard.

i use this raw

raw *:*: {
if $numeric == 438 {
/.timer77 1 $9 /echo -a $bit you can now change your nickname
/.timer74 1 $9 /nick $2 | /nickserv identify %nick.pass
echo -a $bit nickchange too fast, -wait $dur($9)
halt
}


Link Copied to Clipboard