Auto NS ID

By `Green on Dec 26, 2008

this is a snippet made to identify you when you connect to your server. it works great for me. if you find any bug please tell me.

dialog A_ID {
  title "Auto Identify"
  size -1 -1 89 46
  option dbu
  button "ADD", 1, 2 22 41 10
  button "DEL", 2, 47 22 40 10
  edit "", 3, 27 1 60 10, autohs
  text "NICK:", 4, 2 2 25 8, center
  text "PASS:", 5, 2 12 25 8, center
  edit "", 6, 27 11 60 10, autohs
  edit "", 7, 2 35 85 10, read
}
on *:dialog:A_ID:*:*:{
  if ($devent == mouse) {
    did -ra A_ID 7 %aidnick $+ , $+ %aidpass
  }
  if ($devent == sclick) {
    if ($did == 1) { 
      set %aidnick $did(3)
      set %aidpass $did(6)
      did -ra A_ID 7 %aidnick $+ , $+ %aidpass
      did -r A_ID 3,6
    }
    if ($did == 2) {
      unset %aidnick 
      unset %aidpass 
    }
  }
}
on *:connect:{
  nick %aidnick
  ns identify %aidpass
}
menu * {
  .Auto ID: dialog -m A_ID A_ID
}

Comments

Sign in to comment.
`Green   -  Dec 28, 2008

lol @ lazy people. and lucky little shit. and thank you :)

 Respond  
Aucun50   -  Dec 28, 2008

All the lazy people like me use:

on *:connect: {
msg nickserv identify (your pass)
}

I would test this one out but i just got my new 500G hard drive in and I'm still installing things, Looks good btw.

 Respond  
`Green   -  Dec 27, 2008

yes it does and thank you :)

 Respond  
PuNkTuReD   -  Dec 26, 2008

nice and neat, does the job.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.