summaryrefslogtreecommitdiffstats
path: root/mbbsd/cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/cal.c')
-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);