If you want it to auto add in the future, just remove the ; in the end of the code: ;write join.txt $nick

and you can edit the adding thing too.
Code:
menu nicklist {
  Add user:{ write join.txt $1 | echo -a Added $1 to the list. }
}