diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-30 14:35:19 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-30 14:35:19 +0800 |
commit | d5b5abdff83a61cd1f824556e7cd7bfddde70956 (patch) | |
tree | 4d74fa1fcb7874d563f6d9bbae47214a7f980532 /mbbsd/admin.c | |
parent | b6f9ab17f2a99c99a0667e0f455627d7c2d3967a (diff) | |
download | pttbbs-d5b5abdff83a61cd1f824556e7cd7bfddde70956.tar pttbbs-d5b5abdff83a61cd1f824556e7cd7bfddde70956.tar.gz pttbbs-d5b5abdff83a61cd1f824556e7cd7bfddde70956.tar.bz2 pttbbs-d5b5abdff83a61cd1f824556e7cd7bfddde70956.tar.lz pttbbs-d5b5abdff83a61cd1f824556e7cd7bfddde70956.tar.xz pttbbs-d5b5abdff83a61cd1f824556e7cd7bfddde70956.tar.zst pttbbs-d5b5abdff83a61cd1f824556e7cd7bfddde70956.zip |
passwd delete bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1635 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 0dfb74dc..8960d322 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -131,7 +131,7 @@ search_key_user(char *passwdfile, int mode) if (ch == 's' && !mode) { if ((ch = searchuser(user.userid))) { setumoney(ch, user.money); - passwd_update(ch, &user); + passwd_index_update(ch, &user); fclose(fp1); return 0; } else { @@ -149,7 +149,7 @@ search_key_user(char *passwdfile, int mode) fprintf(stderr, "本站人口已達飽和!\n"); exit(1); } - if (passwd_update(allocid, &user) == -1) { + if (passwd_index_update(allocid, &user) == -1) { fprintf(stderr, "客滿了,再見!\n"); exit(1); } @@ -1070,6 +1070,7 @@ scan_register_form(char *regfile, int automode, int neednum) strncat(genbuf, "\n", sizeof(genbuf)); log_file(buf, genbuf, 1); passwd_update(unum, &muser); + passwd_index_update(unum, &muser); if ((fout = fopen(logfile, "a"))) { for (n = 0; field[n]; n++) |