diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-09-07 03:52:57 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-09-07 03:52:57 +0800 |
commit | fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b (patch) | |
tree | f3f43d69f0b65589a931b98a634e3b27d2c5d136 /mbbsd/admin.c | |
parent | bc3952ec2fcbddd3c4820f21c8490ccd8c728a1d (diff) | |
download | pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.gz pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.bz2 pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.lz pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.xz pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.tar.zst pttbbs-fc05c7ec6b8d7bbd2fbad6426c2e5d23994aea0b.zip |
clean up
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1166 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 99c87621..e6f30b20 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -33,7 +33,7 @@ search_key_user(char *passwdfile, int mode) int ch; int coun = 0; FILE *fp1 = fopen(passwdfile, "r"); - char friendfile[128]="",buf[128], key[22], genbuf[8], + char friendfile[128]="", key[22], genbuf[8], *keymatch; @@ -46,8 +46,7 @@ search_key_user(char *passwdfile, int mode) while ((fread(&user, sizeof(user), 1, fp1)) > 0 && coun < MAX_USERS) { if (!(++coun & 15)) { move(1, 0); - snprintf(buf, sizeof(buf), "第 [%d] 筆資料\n", coun); - outs(buf); + prints("第 [%d] 筆資料\n", coun); refresh(); } keymatch = NULL; @@ -73,8 +72,7 @@ search_key_user(char *passwdfile, int mode) if(keymatch) { move(1, 0); - snprintf(buf, sizeof(buf), "第 [%d] 筆資料\n", coun); - outs(buf); + prints("第 [%d] 筆資料\n", coun); refresh(); user_display(&user, 1); @@ -110,11 +108,10 @@ search_key_user(char *passwdfile, int mode) return 0; } else { move(b_lines - 1, 0); - genbuf[0] = 'n'; getdata(0, 0, "目前的 PASSWD 檔沒有此 ID,新增嗎?[y/N]", genbuf, 3, LCECHO); - if (genbuf[0] == 'n') { + if (genbuf[0] != 'y') { outs("目前的PASSWDS檔沒有此id " "請先new一個這個id的帳號"); } else { @@ -479,9 +476,6 @@ x_file() case '9': fpath = "etc/hint"; break; - case 'a': - fpath = "etc/teashop"; - break; case 'b': fpath = "etc/sysop"; break; |