Log in | Back to darenet.org

Allowauth Checking Script (mirc)

Simply copy/paste this code using Notepad and save it in your mIRC directory as whateveryouwant.mrc then /load -rs whateveryouwant.mrc

 ;All credit for this script is given to KIA.
on ^*:NOTICE:*:*: {
  if (($nick == NickServ) && (%handlecheck == 1)) {
    if (authed == $2) {
      /echo 5 -a HC> Last Auth: $4
    } 
    if (Hostmask isin $1) {
      /echo 5 -a HC> $1-
      linesep $active
    }
    if (Email address isin $1-2) {
      /echo 5 -a HC> $1-
    }
    if (Cookie isin $1) {
      echo 5 -a HC> $1-
    }
    if ($1-2 = last quit) {
      echo 5 -a HC> $1-
    }
    if (nickname isin $2) {
      /echo 5 -a HC> Current Nicknames: $3-
    }
    haltdef
  }
}
alias hc {
  /set %handlecheck 1
  /set %hcitem1 $1
  if ($2 != $null) /set %hcitem2 $2
  elseif ($1 != $null) /set %hcitem2 $1
  /set %hcm 1
  if ($2 != $null) /.msg NickServ accountinfo * $+ $2
  elseif ($1 != $null) /.msg NickServ accountinfo * $+ $1
  else halt
  /echo 5 -a Handle Check: $address($1,5)
  linesep $active
  /.timerHANDLE 1 1 /set %handlecheck 0
  /.timerXMATCH 1 60 /set %hcm 0
}
 
alias xm {
  if (%hcm == 1) {
    if ($left(%hcitem2,1) == *) {
      .set %hcitem2 $right(%hcitem2,-1)
    }
    /msg NickServ allowauth %hcitem1 %hcitem2
  }
}

To use the script, simply type /hc nick account

It'll then spit back some information which will look like this:

Handle Check: meeko-!meeko@pool-68-162-4-197.nwrk.east.verizon.net

HC> Email address: Set. This will say either "Set." or "Not set."

HC> Last quit hostmask: ~meeko@pool-68-162-4-197.nwrk.east.verizon.net

HC> Hostmask(s): *meeko@*.east.verizon.net

HC> Current Nicknames: meeko This will only appear if there is another user (or users) authenticated to the account

If you decide you don't want to allowauth the user, it times out after 60 seconds, however if you decide you do want to allowauth the user, simply type /xm and it will perform the allowauth for you. Obviously after this you should make sure you instruct the user to use the addmask command. You should also help them set an e-mail address if the one that is currently set is no longer in use.