Nickserv identify script

By F*U*R*B*Y* on Aug 14, 2005

yeah its simple but i use it all the time so i thought i would post it here

replace the word yourpass and yourchan with the actually password and channels

on 1:NOTICE:*NickServ IDENTIFY*:?: {  if ($nick == Nickserv) { /nickserv identify yourpass } { /join yourchan } { /join yourchan }
}

Comments

Sign in to comment.
cdcyborg   -  Feb 18, 2008

My Code:
I Coded it all :)

on *:start: {
hmake Config 10
hmake IpLog 25
hload IpLog IpLog.hash
hload Config Config.hash
window -zk[0] @Raws
window -n @Raws
if ($hget(Config,Servers) == $null) { setupserver $input(There Is No Servers To Connect To.) | halt }
server $gettok($hget(Config,Servers),1,32)
set %svrnum 2
:top
if ($gettok($hget(Config,Servers),%svrnum,32) == $null) { unset %svrnum | halt }
server -m $gettok($hget(Config,Servers),%svrnum,32)
inc %svrnum 1
goto top
}

on *:connect: {
if ($hget($network) == $null) {
hmake $network 10
}
if ($exists( $+ $network $+ .hash) == $true) { hload $network $network $+ .hash }
perform
set -u10 %startup yes
}

alias perform {
if ($hget($network,Nickname) == $null) { set %setupsvr $network | setupserver | halt }
if ($hget($network,Channels)) { join $hget($network,Channels) }
nick $iif(%tempnick,%tempnick,$hget($network,Nickname))
ns identify $dcode($hget($network,Password),m)
if ($hget($network,OperNick)) {
oper $dcode($hget($network,OperNick)) $dcode($hget($network,OperPass))
/mode $me +iwxoghaAsNWtTq
/mode $me +s +cFkevGnNqsSo
}
window -n \"status window\"
}

 Respond  
supergeo   -  Aug 17, 2005

So if it\'s not a security issue, you could use this one, too. Xdaemon... it says you can specify it for a server, so you only specify it for the server you go to if you have nickserv. Then you can connect to others and not give away your password.

 Respond  
Yoinx   -  Aug 16, 2005

yeah you could, but its not a security issue for me as that password is only used for irc nicks, and nothing else. So you couldnt for instance check my email with it.

 Respond  
xDaeMoN   -  Aug 16, 2005

Perform is triggered when you connect to a server/network & performs the commands, network-specific or not.

You can put it in On Connect too, you just need to put conditions for it to be network/sever-specific.

That\'s why I said it\'s the same.

From the mIRC Help File:

Perform...
The perform on connect option allows you to specify a set of commands that you want mIRC to perform when it connects to a specific IRC network. You can specify a set of commands to be performed for All Networks, for a specific network, and for any Other networks that are not specifically assigned their own commands.

 Respond  
supergeo   -  Aug 16, 2005

And I could just as easily message you when you connect saying $nick is registered, and you\'d give me your password. It\'s better to use the perform.

 Respond  
supergeo   -  Aug 16, 2005

Xdaemon- No, it\'s not the same. Because, like I said, you can choose only to use it on servers/networks that have nickserv, so the name couldn\'t be used by a regular user.

 Respond  
Yoinx   -  Aug 15, 2005

on :NOTICE:isregistered:*: {
if ( $nick = Nickserv ) {
.msg nickserv identify password
}
}

thats how I have mine.

 Respond  
anthalus   -  Aug 15, 2005

Well the way I have it in my on :Connect is
if ($gettok($server,2,46) == ) {

} That way the identify goes out to the correct server.
 Respond  
xDaeMoN   -  Aug 15, 2005

@ Supergeo, the perform section is the same with On Connect. See Yoinx\'s comment below regarding the On Connect Event for this snippet.

 Respond  
supergeo   -  Aug 15, 2005

Perform section in the main dialog. Does same thing, but allows you to specify network.

 Respond  
F*U*R*B*Y*   -  Aug 14, 2005

true

 Respond  
Yoinx   -  Aug 14, 2005

one reason to not put it in the on connect portion, is that not all servers use nickserv. So If you join a server that doesnt, they probably dont prohibit the nick \'nickserv\' so if someone is using it... You\'ll be giving them a password. Which may or may not be the same password you use for other things.

 Respond  
F*U*R*B*Y*   -  Aug 14, 2005

exactly but what u said was it will msg nickserv even if services aren\'t there but mine won\'t msg Nickserv because Nickserv wouldn\'t of noticed me

 Respond  
anthalus   -  Aug 14, 2005

Ummm unless I am wrong, Nickserv is a part of Services, and if down, will not respond.

 Respond  
F*U*R*B*Y*   -  Aug 14, 2005

but this way if services are down it won\'t msg them ;)

 Respond  
anthalus   -  Aug 14, 2005

On my server the nickserv message comes as a SNOTICE. Also, why not put it in the on :CONNECT script?

on *:CONNECT: {
.nickserv identify
.timer 1 5 .join #,#,#
}

 Respond  
aeros   -  Aug 14, 2005

so simple.................................... but ok

 Respond  
F*U*R*B*Y*   -  Aug 14, 2005

i use it for my self and for my bots

 Respond  
brottor   -  Aug 14, 2005

oh i see

 Respond  
F*U*R*B*Y*   -  Aug 14, 2005

on the server i go on it doesn\'t allow /ns it wants /nickserv

 Respond  
brottor   -  Aug 14, 2005

hm you can shorten /nickserv to /ns and it should be /join #chan,#chan,#chan,#chan

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.