diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-02 00:41:30 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-02 00:41:30 +0800 |
commit | 3c09964ade10e63444315ed08a63b92496d6d46b (patch) | |
tree | cf82aea08b0827f632779e0bd5cba6eecefe42a1 | |
parent | 59f8d6883f61d07fb32f6cd189f30fcdc1322bb7 (diff) | |
download | pttbbs-3c09964ade10e63444315ed08a63b92496d6d46b.tar pttbbs-3c09964ade10e63444315ed08a63b92496d6d46b.tar.gz pttbbs-3c09964ade10e63444315ed08a63b92496d6d46b.tar.bz2 pttbbs-3c09964ade10e63444315ed08a63b92496d6d46b.tar.lz pttbbs-3c09964ade10e63444315ed08a63b92496d6d46b.tar.xz pttbbs-3c09964ade10e63444315ed08a63b92496d6d46b.tar.zst pttbbs-3c09964ade10e63444315ed08a63b92496d6d46b.zip |
- print angel_msg last modified date
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4059 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/talk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 7b7c6d71..10fb25b0 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -3534,19 +3534,18 @@ NoAngelFound(const char* msg){ static inline void AngelNotOnline(){ - char buf[256]; + char buf[PATHLEN] = ""; const static char* const not_online_message = "您的小天使現在不在線上"; if (cuser.myangel[0] != '-') sethomefile(buf, cuser.myangel, "angelmsg"); if (cuser.myangel[0] == '-' || !dashf(buf)) NoAngelFound(not_online_message); else { + time4_t mod = dasht(buf); FILE* fp = fopen(buf, "r"); clear(); showtitle("小天使留言", BBSNAME); move(4, 0); - clrtobot(); - buf[0] = 0; fgets(buf, sizeof(buf), fp); if (strncmp(buf, "%%[", 3) == 0) { @@ -3561,7 +3560,6 @@ AngelNotOnline(){ "小天使留言" ANSI_COLOR(31) "├──────────────┬☉" ANSI_RESET "\n"); outs(ANSI_COLOR(1;31) "╭┤" ANSI_COLOR(32) " 小天使 " " " ANSI_COLOR(31) "├╮" ANSI_RESET "\n"); - do { chomp(buf); prints(ANSI_COLOR(1;31) "│" ANSI_RESET "%-74.74s" ANSI_COLOR(1;31) "│" ANSI_RESET "\n", buf); @@ -3571,6 +3569,8 @@ AngelNotOnline(){ "─────────────┬╯" ANSI_RESET "\n"); outs(ANSI_COLOR(1;31;44) "☉┴─────────────────────" "──────────────┴☉" ANSI_RESET "\n"); + prints("%55s%s", "留言日期: ", Cdatelite(&mod)); + move(b_lines - 4, 0); outs("小主人使用上問題找不到小天使請到新手版(" BN_NEWBIE ")\n" |