Simple Nickserv Ident

By Viper01 on Jun 05, 2009

Simple nickserv ID script I made out of boredom. Load into a Remotes file, right click anywhere and select NickServ Ident. Type in your password in the first box, then click Save, then click Exit or [X]. Currently only works for 1 server.

menu * {
  NickServ Ident:dialog -dm ns ns
}
dialog NS {
  size -1 -1 100 70
  title "Nickserv Ident"
  option dbu
  edit "" 1, 15 5 70 10, return, multi
  edit "" 2, 15 20 70 10, read, return, multi
  button "Save",3, 15 40 70 10
  button "Clear",4, 15 50 70 10
  button "Exit",5, 15 60 70 10, ok
}
on *:DIALOG:NS:init:*: {
  did -a NS 2 %Pass
}
on *:DIALOG:NS:sclick:3: {
  set %Pass $did(1)
  did -a NS 2 %Pass
}
on *:DIALOG:NS:sclick:4: {
  unset %Pass
  did -r NS 2
}
On *:Connect: {
  ns identify %Pass
}

Comments

Sign in to comment.
Aucun50   -  Jun 05, 2009

Not really a big deal but you can use one on dialog like:

on *:dialog:ns:*:*: {
  if ($devent == init) { did -a NS 2 %Pass }
  elseif ($devent == sclick) {
    if ($did == 3) { set %Pass $did(1) | did -ra NS 2 %Pass }
    elseif ($did == 4) { unset %Pass | did -r NS 2 }
  }
}

Also you should use "did -ra" for the add are you will add and set the old one + the new one.

 Respond  
slacker   -  Jun 05, 2009

nice idea, but this produces too many errors.

 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.