mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 19
F
fast68 Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Sep 2003
Posts: 19
im having a hard time figuring out how to make a simple on notice ns idenfity password remote line

on 1:NOTICE:This is a registered nick:#:/ns identify password

what am i doing wrong ?

thanks for looking/helping



Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
The notice would be a private notice, not a channel notice... change the # to a ?.

Also, is that the entire message you receive? Or only part of it? If it's only part of the message, be sure to put *'s in front or after it if needed.

on *:notice:*This is a registered nick*:?:/ns identify password

Blue is an optional change, if needed. Red is the required change that I made.


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2003
Posts: 19
F
fast68 Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Sep 2003
Posts: 19
hi, yes its the beginning part of the notice message

notice is from nickserv, btw

ok got it to work by changing to on 1:notice:This is a registered nick*:?:/ns identify password

i was so close, but not quite :P

so ? is for private notices, hum

interesting,

thanks for helping laugh

Last edited by fast68; 19/10/05 09:43 PM.


Joined: Apr 2004
Posts: 218
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
I use something similar to:

Code:
on *:NOTICE:*:?:{
if (*/msg*NickServ*identify*password* iswm $1-) && ($nick == NickServ) {
.echo -s Identifying on $network
.msg nickserv identify $getpass($network, $me)
haltdef
}
if (*Password*accepted* iswm $1-) && ($nick == Nickserv) {
echo -s Identified on $network
haltdef
}


Just a small code.
Could actually put both of those if statements under if ($nick == Nickserv) to shorten the if line.. o.o


Live to Dream & Dream for Life
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes, ? is for private, just like with on text. # is for channel (i.e. notices that go to everyone in the channel). It's probably easier to think of ? as private rather than as query since a notice isn't really in/to a query window. smile

You can avoid dealing with that altogether if you use *, but then you have to be sure you're not going to get someone messaging/noticing the channel with what you're expecting from nickserv in private. So, to be safe, it's better to just specify ?. laugh


Invision Support
#Invision on irc.irchighway.net
Joined: Jun 2005
Posts: 6
H
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
H
Joined: Jun 2005
Posts: 6
you can identify for multiple nicks too fast68
on *:NOTICE:*This is a registered nick*:?: {
if ($nick == nickserv) && ($me == nickname1) { /ns identify password1 }
if ($nick == nickserv) && ($me == nickname2) { /ns identify password2 }
}

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Agreed. Though, I think I'd break the if's apart...
Code:
if ($nick == nickserv) {
  if ($me == nick1) { }
  if ($me == nick2) {}
}


It won't be noticeably faster, but it is still faster. laugh


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
I think it would be a good idea to check what network you are on as well.
Code:
on *:notice:* This nick is owned by someone else *:?: { 
  if ($nick == nickserv) {
    if ($network == mynetwork) { 
      if ($me == nickname1) { nickserv IDENTIFY %password1 }
      if ($me == nickname2) { nickserv IDENTIFY %password2 }  
    }
  }
}

This would also allow you to have different passwords on different networks as well as being more secure.


Link Copied to Clipboard