mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2004
Posts: 21
S
sCHuTt Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2004
Posts: 21
Lo there,

Been fiddlin on this for friggin ages but always '.....'s up. I'm lookin for a way to have users have to ID theirselves to bot.
The bot'd have to check the IP when it's PM'ed (statin whu-ever text) an if IP is allowed, reply "accepted".

This even possible?

- sChutt

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Code:
on accepteduser:TEXT:!auth*:?:{
  if ($2 == password) {
     msg $nick accepted
    ; you'll probably add some useful stuff here
  }
}


You might want to change the password smile

now hit alt-r alt-u and type for each allowed ip address a line like one of these:
accepteduser:*!*@12.34.56.78
accepteduser:*!*@nickname.users.quakenet.org
accepteduser:*!*@ip-12-21.customer.aol.com
accepteduser:*!*@my.dns.name.is.1337.com

If you want a specific password per user:

Code:
on accepteduser:TEXT:!auth*:?:{
  if (($2) && ($2- === $ulist($address,accepteduser,1).info)) {
    msg $nick accepted
    ; you'll probably add some useful stuff here
  }
}

now hit alt-r alt-u and type for each allowed ip address a line like one of these:
accepteduser:*!*@12.34.56.78 my_password
accepteduser:*!*@nickname.users.quakenet.org his password is a complete phrase
accepteduser:*!*@ip-12-21.customer.aol.com iam1773
accepteduser:*!*@my.dns.name.is.1337.com tfZdUUh5g

Joined: Aug 2004
Posts: 21
S
sCHuTt Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2004
Posts: 21
Works like a charm, thank you.

- sChutt


Link Copied to Clipboard