summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-22 00:38:17 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-22 00:38:17 +0800
commit90a766513e44c1d050a3cedd8ad54701181bc4af (patch)
tree50c90da1ac49785086ddafbf802aee6f76c3b58c /mbbsd
parentfb0f9fb4276c7183f04046d82d124fe0eabfd460 (diff)
downloadpttbbs-90a766513e44c1d050a3cedd8ad54701181bc4af.tar
pttbbs-90a766513e44c1d050a3cedd8ad54701181bc4af.tar.gz
pttbbs-90a766513e44c1d050a3cedd8ad54701181bc4af.tar.bz2
pttbbs-90a766513e44c1d050a3cedd8ad54701181bc4af.tar.lz
pttbbs-90a766513e44c1d050a3cedd8ad54701181bc4af.tar.xz
pttbbs-90a766513e44c1d050a3cedd8ad54701181bc4af.tar.zst
pttbbs-90a766513e44c1d050a3cedd8ad54701181bc4af.zip
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
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cal.c6
1 files changed, 5 insertions, 1 deletions
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, "點歌");
}