mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Hi, I'm new to the boards... I'm working on a bot and I'm wondering if there is some identifier that I can put in an "if" statement to determine if a nick is registered. Thanks. smile

Blake

Joined: May 2005
Posts: 8
L
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
L
Joined: May 2005
Posts: 8
user level confused

Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
there isnt you can whois and catch the raw to grab information about wheter some1 is registered or not.


$maybe
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I think this may work, but only when Raw 307 is processed.

Code:
On *:Join:#: {
  .enable #reg.nick
  set %reg.nick.f.reg $nick
  set %reg.nick.chan $chan
  whois $nick
  .timer 1 1 chk.reg
}

alias chk.reg {
  if ($var($+(%,reg.nick.,%reg.nick.f.reg),0)) {
    msg %reg.nick.chan Hey $+(%reg.nick.f.reg,!) You're registered!
  }
  else {
    msg %reg.nick.chan You have not registered.
  }
  unset %reg.nick.*
}
#reg.nick off
Raw 311:*:halt
Raw 307:*: {
  set $+(%,reg.nick.,$2)
  halt
}
Raw 319:*:halt
Raw 312:*:halt
Raw 309:*:halt
Raw 325:*:halt
Raw 317:*:halt
Raw 318:*: {
  .disable #reg.nick
  halt
}
#reg.nick end


-Andy

Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Thanks for that script. At the moment, it's a bit over my head, so I'm going to take some time to learn more before I use it. Thanks.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
No worries dude, I should have used comments to guide you through it. smile

-Andy


Link Copied to Clipboard