diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-02 16:13:56 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-02 16:13:56 +0800 |
commit | 2a3b2f23174ed2f88859f0b70e04394120759d2f (patch) | |
tree | e41cd88e39c8730d6c82ac05f94891a3840f5132 /mbbsd/chat.c | |
parent | 33642e3dd987107200e220306fad0748294cf127 (diff) | |
download | pttbbs-2a3b2f23174ed2f88859f0b70e04394120759d2f.tar pttbbs-2a3b2f23174ed2f88859f0b70e04394120759d2f.tar.gz pttbbs-2a3b2f23174ed2f88859f0b70e04394120759d2f.tar.bz2 pttbbs-2a3b2f23174ed2f88859f0b70e04394120759d2f.tar.lz pttbbs-2a3b2f23174ed2f88859f0b70e04394120759d2f.tar.xz pttbbs-2a3b2f23174ed2f88859f0b70e04394120759d2f.tar.zst pttbbs-2a3b2f23174ed2f88859f0b70e04394120759d2f.zip |
- display remaining days info for chatroom restriction
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3958 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r-- | mbbsd/chat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c index af3b8e84..6623fbc2 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -295,8 +295,9 @@ t_chat(void) #ifdef CHAT_REGDAYS if ((now - cuser.firstlogin)/86400 < CHAT_REGDAYS) { - vmsg("您還不夠資深喔"); - return 0; + int i = CHAT_REGDAYS - (now-cuser.firstlogin)/86400 +1; + vmsgf("您還不夠資深喔 (再等 %d 天吧)", i); + return 0; } #endif |