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
}