summaryrefslogtreecommitdiffstats
path: root/mbbsd/chicken.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-31 10:52:32 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-31 10:52:32 +0800
commit389688bf4c143e2dc9d69613fdf4f653af7d0332 (patch)
tree4a1b9ffb01c7c127ccc14b4bcc56d35adab8b7f4 /mbbsd/chicken.c
parent68a3c5c7677ca92bf22093fbfd123d4b0566a1a2 (diff)
downloadpttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.gz
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.bz2
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.lz
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.xz
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.zst
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.zip
refining
cuser & passwd_update git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1649 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chicken.c')
-rw-r--r--mbbsd/chicken.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/chicken.c b/mbbsd/chicken.c
index ce876c84..1f6a4ecd 100644
--- a/mbbsd/chicken.c
+++ b/mbbsd/chicken.c
@@ -505,7 +505,7 @@ ch_sell()
chicken_type[(int)mychicken->type], money, ctime(&now));
log_file(CHICKENLOG, buf, 1);
mychicken->lastvisit = mychicken->name[0] = 0;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
more(CHICKEN_PIC "/sell", YEA);
demoney(money);
return 1;
@@ -663,7 +663,7 @@ deadtype(chicken_t * thechicken)
ctime(&now));
log_file(CHICKENLOG, buf, 1);
mychicken->name[0] = 0;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
}
return i;
}
@@ -860,7 +860,7 @@ recover_chicken(chicken_t * thechicken)
bell();
igetch();
thechicken->lastvisit = 0;
- // passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
return 0;
}
@@ -884,7 +884,7 @@ chicken_main()
show_chicken_data(mychicken, NULL);
} while (select_menu());
reload_money();
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
unlockutmpmode();
return 0;
}
@@ -1016,7 +1016,7 @@ chickenpk(int fd)
outs(data + 1);
i = strlen(data) + 1;
passwd_update(duid, &ouser);
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
send(fd, data, i, 0);
if (data[0] == 'q' || data[0] == 'd')
break;