I had this same problem, and eventually gave up on it.
For me the E-Mail address would save when the character
was first created, but if the character were to save, or quit
and re-connect the e-mail address would be wiped.
I was told by someone it had to do with the '@' character
but I am not totally sure.
-----------------------------------------------------------------------
Mark W. Vanness Jr.
Funcity - Technical Support
Junior57 Productions - President
-----------------------------------------------------------------------
Funcity - http://www.funcity.org
J57Prod - http://none.yet.net
----- Original Message -----
From: Julian Buckley <s348266@student.uq.edu.au>
To: <CIRCLE@post.queensu.ca>
Sent: Monday, May 24, 1999 10:36 PM
Subject: Problems saving a field within nanny()
> Okies, basically I wish to have a new player enter his email address and
> have it save within the playerfile --- I've already got it working online
> (i.e. email whatever), but was hoping to get it running via nanny()...
>
> CON_QEMAIL looks similar to the following...the gethostbyaddr stuff was
> taken from Brian Gray's "email_reg" code...
>
> ***SNIP***
> if ((host = strchr(arg, '@')))
> host++;
> else {
> SEND_TO_Q("Address should be in the form userid@host.\r\n", d);
> SEND_TO_Q("Enter e-mail address: ", d);
> return;
> }
> if (!(gethostbyname(host))) {
> SEND_TO_Q("Invalid internet host.\r\n", d);
> SEND_TO_Q("Enter e-mail address: ", d);
> return;
> }
> if (strstr(arg, "root")) {
> SEND_TO_Q("You cannot register as root.\r\n", d);
> SEND_TO_Q("Enter e-mail address: ", d);
> return;
> }
> if (strlen(arg) > MAX_EMAIL_LENGTH) {
> SEND_TO_Q("Address too long.\r\n", d);
> SEND_TO_Q("Enter e-mail address: ", d);
> return;
> }
> CREATE(d->character->player.email, char, strlen(arg) + 1);
> strcpy(d->character->player.email, CAP(arg));
> ***END***
>
> If I place the following:
> sprintf(buf, "Did I get that right, %s (Y/N)? ",
d->character->player.email);
> SEND_TO_Q(buf, d);
> it displays the email address typed...
>
> However, when he/she logs into the game, it's not saved? The prototypes
> in db.c for init_char are all set up --- I've tried mimicing player.name
> and player.title...
>
>
> What am I missing? *ponder*
>
>
> -J.
>
> -----------------------------------------------------------------
> Julian Buckley, 3rd Year Software Engineering
> Dept. Computer Science and Electrical Engineering, Univ. of Qld
> E-Mail: s348266@student.uq.edu.au
> Web Page: http://student.uq.edu.au/~s348266/index.html
> -----------------------------------------------------------------
>
>
> +------------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
> +------------------------------------------------------------+
>
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST