mIRC Home    About    Download    Register    News    Help

Print Thread
#232773 21/06/11 04:42 PM
Joined: Nov 2005
Posts: 26
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Nov 2005
Posts: 26
I can't get this to work


on ^*:NOTICE:*This nickname is registered*:?:{ if ($nick == nickserv) { nickserv identify <password> } }

dutch1918 #232774 21/06/11 05:16 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
First, you don't need ^ unless you're halting default text. Second, this notice *may* be an SNOTICE instead of NOTICE. Third, unless /nickserv is a command on that server, you may need to use msg nickerv identify password instead.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #232775 21/06/11 05:39 PM
Joined: Nov 2005
Posts: 26
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Nov 2005
Posts: 26
ok.. I'm still can't get it to work.. here is the full script:


Code:
on *:connect: { 
  if ($network == <network>) { 
    .nick <mynick>
    on *:SNOTICE:*This nickname is registered*:?:{ if ($nick == nickserv) { msg nickserv identify <mypassword } }
    .timer 1 20 .join #channel 
  } 

dutch1918 #232776 21/06/11 06:43 PM
Joined: Nov 2005
Posts: 26
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Nov 2005
Posts: 26
Never mind.. I figured it out. I need to have the on *:NOTICE: before the on *:CONNECT:

dutch1918 #232779 21/06/11 09:09 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Actually, you have the ON SNOTICE event in the ON CONNECT event.
Each event must be left justified.


Riamus2 #232784 22/06/11 01:37 AM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Quote:
First, you don't need ^ unless you're halting default text
A little note about that, it's not really true.
The ^ prefix means the event is triggered before processing normal events, and before mIRC does its default behavior for that event. Using it in conjunction with /halt(ef) is just the common usage, but it can, for example, be used without /halt(ef) in order to avoid conflict with normal event, it can be useful when helping someone, if the code works with ^ but not without it, it means the user has a normal event preventing the one you gave to work


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #232786 22/06/11 02:05 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes, that is true. I should have said "in general." I was pretty certain the OP was using it incorrectly after the OP saw it somewhere else, so I put that without getting too detailed.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard