mIRC Home    About    Download    Register    News    Help

Topic Options
#121009 - 23/05/05 10:24 AM identifier for registered nicknames
bwr30060 Offline
Fjord artisan

Registered: 23/05/05
Posts: 449
Loc: Georgia USA
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
_________________________
Bears on Patrol Chat

Top
#121010 - 23/05/05 11:05 AM Re: identifier for registered nicknames
llgr Offline
Nutrimatic drinks dispenser

Registered: 22/05/05
Posts: 8
user level confused

Top
#121011 - 23/05/05 12:30 PM Re: identifier for registered nicknames
Mpdreamz Offline
Hoopy frood

Registered: 27/04/04
Posts: 759
Loc: Arnhem, The Netherlands
there isnt you can whois and catch the raw to grab information about wheter some1 is registered or not.
_________________________
$maybe

Top
#121012 - 23/05/05 04:15 PM Re: identifier for registered nicknames
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
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

Top
#121013 - 23/05/05 04:49 PM Re: identifier for registered nicknames
bwr30060 Offline
Fjord artisan

Registered: 23/05/05
Posts: 449
Loc: Georgia USA
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.
_________________________
Bears on Patrol Chat

Top
#121014 - 23/05/05 04:52 PM Re: identifier for registered nicknames
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
No worries dude, I should have used comments to guide you through it. smile

-Andy

Top