diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-12 12:16:35 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-12 12:16:35 +0800 |
commit | fda6d63bafd474518327879633b2231a5aaa6825 (patch) | |
tree | 5b3d291865da567e4ff0592facb0d58913a480bb /mbbsd/cal.c | |
parent | 3f76b17cecfae6af61240a7ef9e5f21118e39f40 (diff) | |
download | pttbbs-fda6d63bafd474518327879633b2231a5aaa6825.tar pttbbs-fda6d63bafd474518327879633b2231a5aaa6825.tar.gz pttbbs-fda6d63bafd474518327879633b2231a5aaa6825.tar.bz2 pttbbs-fda6d63bafd474518327879633b2231a5aaa6825.tar.lz pttbbs-fda6d63bafd474518327879633b2231a5aaa6825.tar.xz pttbbs-fda6d63bafd474518327879633b2231a5aaa6825.tar.zst pttbbs-fda6d63bafd474518327879633b2231a5aaa6825.zip |
rewrite few lines.
comment on strange lines.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2496 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r-- | mbbsd/cal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 78011f5f..34eb3ea7 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -292,6 +292,7 @@ p_exmail() char ans[4], buf[200]; int n; + assert(MAX_EXKEEPMAIL < (1<< (sizeof(cuser.exmailbox)*8-1) )); if (cuser.exmailbox >= MAX_EXKEEPMAIL) { vmsg("容量最多增加 %d 封,不能再買了。", MAX_EXKEEPMAIL); return 0; @@ -373,7 +374,7 @@ p_give() tax = give_tax(money); if (money - tax <= 0) return 0; /* 繳完稅就沒錢給了 */ - deumoney(searchuser(id), money - tax); + deumoney(searchuser(id), money - tax); // FIXME if searchuser(id) return 0 demoney(-money); log_file(FN_MONEY, LOG_CREAT | LOG_VF, "%s\t給%s\t%d\t%s", cuser.userid, id, money - tax, ctime4(&now)); |