From 90a766513e44c1d050a3cedd8ad54701181bc4af Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 21 Sep 2005 16:38:17 +0000 Subject: append a "." after the anonymous id log for ordering song git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3199 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mbbsd/cal.c b/mbbsd/cal.c index b2a92d92..960378a1 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -198,8 +198,11 @@ osong(void) return 0; } while ((po = strstr(buf, "<~Src~>"))) { + const char *dot = ""; + if (strcmp(sender, cuser.userid) != 0) + dot = "."; po[0] = 0; - snprintf(genbuf, sizeof(genbuf), "%s%s%s", buf, sender, po + 7); + snprintf(genbuf, sizeof(genbuf), "%s%s%s%s", buf, sender, po + 7, dot); strlcpy(buf, genbuf, sizeof(buf)); } while ((po = strstr(buf, "<~Des~>"))) { @@ -225,6 +228,7 @@ osong(void) if (nsongs > 500) { delete_range(OSONGPATH "/.DIR", 1, nsongs - 500); } + log_user("OSONG"); /* 把第一首拿掉 */ vice(200, "點歌"); } -- cgit v1.2.3