summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-10 03:21:08 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-10 03:21:08 +0800
commita4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5 (patch)
treed2abd2d1aa673ad667e60b8029f0796d2e20a78f /mbbsd/chat.c
parent961bf03bac8ac5264a028d3f580904bbd5b4e37f (diff)
downloadpttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.gz
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.bz2
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.lz
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.xz
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.zst
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.zip
- (internal) change 86400/... (seconds of day/month/...) to named constants.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4284 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r--mbbsd/chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index 88a0b497..3af6f4f6 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -376,9 +376,9 @@ t_chat(void)
#endif
#ifdef CHAT_REGDAYS
- if ((now - cuser.firstlogin)/86400 < CHAT_REGDAYS)
+ if ((now - cuser.firstlogin)/DAY_SECONDS < CHAT_REGDAYS)
{
- int i = CHAT_REGDAYS - (now-cuser.firstlogin)/86400 +1;
+ int i = CHAT_REGDAYS - (now-cuser.firstlogin)/DAY_SECONDS +1;
vmsgf("您還不夠資深喔 (再等 %d 天吧)", i);
return 0;
}