diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-08 20:36:21 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-08 20:36:21 +0800 |
commit | d9779e22308a1b7f2ff77c2b79567ccf742b5036 (patch) | |
tree | 17cfa00aeb74a130d4708f53613d7378b476140b /mbbsd | |
parent | 133c8925067a703dfef58607fd2ca636fa3b2922 (diff) | |
download | pttbbs-d9779e22308a1b7f2ff77c2b79567ccf742b5036.tar pttbbs-d9779e22308a1b7f2ff77c2b79567ccf742b5036.tar.gz pttbbs-d9779e22308a1b7f2ff77c2b79567ccf742b5036.tar.bz2 pttbbs-d9779e22308a1b7f2ff77c2b79567ccf742b5036.tar.lz pttbbs-d9779e22308a1b7f2ff77c2b79567ccf742b5036.tar.xz pttbbs-d9779e22308a1b7f2ff77c2b79567ccf742b5036.tar.zst pttbbs-d9779e22308a1b7f2ff77c2b79567ccf742b5036.zip |
- (internal) xchatd: remove unused code
- (internal) general code refine
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4279 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/cal.c | 6 | ||||
-rw-r--r-- | mbbsd/edit.c | 3 | ||||
-rw-r--r-- | mbbsd/mbbsd.c | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 4cacb91a..4082de51 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -394,11 +394,11 @@ int do_give_money(char *id, int uid, int money) // penalty if (money < 50) { - usleep(2000000); + usleep(2000000); // 2 sec } else if (money < 200) { - usleep(500000); + usleep(500000); // 0.5 sec } else { - usleep(100000); + usleep(100000); // 0.1 sec } return 0; } diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 7c554e03..e5e5a7b6 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1703,7 +1703,8 @@ write_file(const char *fpath, int saveheader, int *islocal, char *mytitle, int u getdata(2, 0, "確定要儲存檔案嗎? ", ans, 2, LCECHO); // avoid lots pots - sleep(1); + if (ans[0] != 'a') + sleep(1); switch (ans[0]) { case 'a': diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index c599c524..887ca77e 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -609,7 +609,7 @@ multi_user_check(void) getdata(b_lines - 1, 0, "您想刪除其他重複登入的連線嗎?[Y/n] ", genbuf, 3, LCECHO); - usleep(random()%1000000); + usleep(random()%1000000); // 0~1s if (genbuf[0] != 'n') { do { // scan again, old ui may be invalid |