summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-04-16 18:30:11 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-04-16 18:30:11 +0800
commit7951714ea73745fbb922caa764cb2acc6e9b9ade (patch)
tree564fb1d56eb15145d0bfc09b77cec6b104c093f2
parent8530fd5c47b7ed5d20666c6df4068582856a9540 (diff)
downloadpttbbs-7951714ea73745fbb922caa764cb2acc6e9b9ade.tar
pttbbs-7951714ea73745fbb922caa764cb2acc6e9b9ade.tar.gz
pttbbs-7951714ea73745fbb922caa764cb2acc6e9b9ade.tar.bz2
pttbbs-7951714ea73745fbb922caa764cb2acc6e9b9ade.tar.lz
pttbbs-7951714ea73745fbb922caa764cb2acc6e9b9ade.tar.xz
pttbbs-7951714ea73745fbb922caa764cb2acc6e9b9ade.tar.zst
pttbbs-7951714ea73745fbb922caa764cb2acc6e9b9ade.zip
Refine message & prevent changing 'now' when doing cross_post_log.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5664 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c1
-rw-r--r--pttbbs/mbbsd/brc.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 6cc65804..faf6d580 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -1101,7 +1101,6 @@ log_crosspost_in_allpost(const char *brd, const fileheader_t *postfile) {
if (cp_IsHiddenBoard(getbcache(brd_id)))
return;
- syncnow();
memcpy(&fh, postfile, sizeof(fileheader_t));
fh.filemode = FILE_LOCAL;
fh.modified = now;
diff --git a/pttbbs/mbbsd/brc.c b/pttbbs/mbbsd/brc.c
index dac68964..bedb2e1a 100644
--- a/pttbbs/mbbsd/brc.c
+++ b/pttbbs/mbbsd/brc.c
@@ -299,8 +299,10 @@ load_remote_brc() {
while (conn_retries-- > 0 &&
(fd = toconnectex(BRCSTORED_ADDR, 5)) < 0) {
mvprints(b_lines, 0, (conn_retries == 0) ?
- "無法載入最新的看板已讀未讀資料, 將使用上次備份... (#%d)" :
- "正在同步看板已讀未讀資料,請稍候... (#%d)", conn_retries + 1);
+ ANSI_COLOR(1;31)
+ "無法載入最新的看板已讀未讀資料, 將使用上次備份... (#%d)"
+ ANSI_RESET: "正在同步看板已讀未讀資料,請稍候... (#%d)",
+ conn_retries + 1);
refresh();
sleep(1);
}