Nick Changer & Saver

By Rage on Aug 03, 2006

Type /addnick To open the dialog and add a nick + Password.

dialog nick {
  title "Nick Changer"
  size -1 -1 152 80
  option dbu
  edit "", 7, 88 8 58 10
  edit "", 8, 88 32 58 10
  text "Nickname:", 9, 88 0 25 8
  text "Password:", 2, 88 24 25 8
  button "Add!", 3, 88 48 61 12
  list 1, 0 0 74 82, size vsbar
  button "Apply Nick!", 4, 88 64 61 12
}

on *:DIALOG:nick:sclick:3:{
  if (!$did(nick,7).text) { return }
  if (!$did(nick,8).text) { return }
  var %a = $read(files\auto-id.rage, s, $did(nick,7).text)
  if (%a) { return }
  write files\auto-id.rage $did(nick,7).text $did(nick,8).text
  did -a nick 1 $did(nick,7).text
  did -r nick 7 | did -r nick 8
}
on *:DIALOG:nick:sclick:4:{
.nick $did(nick,7).text $did(nick,8).text
}
alias addnick {
dialog -m nick nick 
}

Comments

Sign in to comment.
Bigmomma   -  Aug 04, 2006

yes Rage, set variables and use .ini files to save data

 Respond  
krimson   -  Aug 03, 2006

i forgot to add to my previous comment that you\'d need to check if the dir files/ exists pefore attempting to write to a file inside it. otherwise you can\'t save any data

 Respond  
krimson   -  Aug 03, 2006

what\'s the password for? is this supposed to be a nickserv identify script?

bugs & improvements:

  • a way to remove the nicks from the list
  • you don\'t get data back from the file once you put it there (if you close the dialog and open again, it would be completly blank) - this should be fixed
 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.