mIRC Home    About    Download    Register    News    Help

Print Thread
#223340 21/07/10 11:52 AM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
What am I doing wrong? not identified
Code:
on $*:text:$(/\b( $+ $me $+ | $+ IDENTIFY password $+ )(\b)/i):*: {
  if $regml(1) = $me {
    Alert
    echo @Alert $asctime(HH:nn) # $nick : $1-
    flash -w @Alert
    halt
  }
  if $regml(1) = IDENTIFY password { 
    if $level($nick) = Services { /IDENTIFY XXXXXX }
  }
}

Services:NickServ!*Services@server.irc

kwell #223348 21/07/10 03:03 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Nickserv messages are usually notices, so use on NOTICE instead of on TEXT. See if that helps.


Invision Support
#Invision on irc.irchighway.net
kwell #223351 21/07/10 03:08 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
kwell, I think you could use an if and then else for this. Since you've indicated $regml(1) = $me. Then if it's not $me, it has to be the password. And you don't need the $+ for the password section.

kwell #223367 21/07/10 10:11 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
Thanks folks, replace Services:NickServ!*Services@server.irc by Services:NickServ and it worked


Link Copied to Clipboard