/*
- * (c) 2009-2011 by Art Cancro and citadel.org
+ * (c) 2009-2012 by Art Cancro and citadel.org
* This program is released under the terms of the GNU General Public License v3.
*/
char *p2;
strcpy(account_name, &cmdbuf[7]);
+ if (strlen(account_name) == 0) {
+ strncpy(account_name, readline("Enter account name: "), sizeof account_name);
+ }
sock_printf(server_socket, "AGUP %s\n", account_name);
sock_getln(server_socket, buf, sizeof buf);
if (buf[0] != '2') {
p2 = readline("Enter it again: ");
if (strcmp(p1, p2)) {
- fprintf(stderr, "Passwords do not match. Account password is unchanged.\n");
+ fprintf(stderr, "The passwords you entered do not match."
+ "The account password remains unchanged.\n"
+ );
return(cmdret_error);
}