summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-11-28 13:53:40 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-11-28 13:53:40 +0800
commit7cf80f7bde48a9959f8a94f2c695ba0c76aec82c (patch)
tree52bebd064aa36b6d60bac9a30ea7ad0f6aa82090 /mbbsd
parent734dc49b3822a58300a4f8aa1356c02984cf88d9 (diff)
downloadpttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar
pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.gz
pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.bz2
pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.lz
pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.xz
pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.tar.zst
pttbbs-7cf80f7bde48a9959f8a94f2c695ba0c76aec82c.zip
MAX_MOVIE is changed from 999 to 500 (reload_pttcache loads only 500 items)
Those hard coded "500" are changed to MAX_MOVIE now. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3449 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index e21ce80f..1966d237 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -224,10 +224,10 @@ osong(void)
if (append_record(OSONGPATH "/.DIR", &mail, sizeof(mail)) != -1) {
cuser.lastsong = now;
- /* Jaky 超過 500 首歌就開始砍 */
+ /* Jaky 超過 MAX_MOVIE 首歌就開始砍 */
nsongs = get_num_records(OSONGPATH "/.DIR", sizeof(mail));
- if (nsongs > 500) {
- delete_range(OSONGPATH "/.DIR", 1, nsongs - 500);
+ if (nsongs > MAX_MOVIE) {
+ delete_range(OSONGPATH "/.DIR", 1, nsongs - MAX_MOVIE);
}
snprintf(genbuf, sizeof(genbuf), "%s says \"%s\" to %s.", sender, say, receiver);
log_usies("OSONG", genbuf);