diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-09-23 05:06:04 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-09-23 05:06:04 +0800 |
commit | cae5ea8fa7f94b023e4d4cc8754854ac7ae9c7aa (patch) | |
tree | bdcd167a96d9efa0b2c58cd096aa17452a245dff | |
parent | 27b167e66f76eef9c2ceed97268e3f7839c71120 (diff) | |
download | pttbbs-cae5ea8fa7f94b023e4d4cc8754854ac7ae9c7aa.tar pttbbs-cae5ea8fa7f94b023e4d4cc8754854ac7ae9c7aa.tar.gz pttbbs-cae5ea8fa7f94b023e4d4cc8754854ac7ae9c7aa.tar.bz2 pttbbs-cae5ea8fa7f94b023e4d4cc8754854ac7ae9c7aa.tar.lz pttbbs-cae5ea8fa7f94b023e4d4cc8754854ac7ae9c7aa.tar.xz pttbbs-cae5ea8fa7f94b023e4d4cc8754854ac7ae9c7aa.tar.zst pttbbs-cae5ea8fa7f94b023e4d4cc8754854ac7ae9c7aa.zip |
Delay when give money.
The give-tax design is stupid, which make user tend to flood server.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3570 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/cal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c index faafe2b5..b99d89e4 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -413,6 +413,13 @@ int do_give_money(char *id, int uid, int money) #endif mail_redenvelop(cuser.userid, id, money - tax, getans("要自行書寫紅包袋嗎?[y/N]")); + if (money < 50) { + usleep(2000000); + } else if (money < 200) { + usleep(500000); + } else { + usleep(100000); + } return 0; } return -1; |