From c8b01d234061bc0b668ad71798955a332ddd186e Mon Sep 17 00:00:00 2001 From: ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> Date: Tue, 12 Oct 2004 19:46:34 +0000 Subject: there was no touchbtotal at syspost. added it. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2246 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/syspost.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index 033ddb2e..2d5f9e5d 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -134,10 +134,11 @@ post_violatelaw(char *crime, char *police, char *reason, char *result) crime, ctime(&now), police, crime, reason, result); fclose(fp); snprintf(fhdr.title, sizeof(fhdr.title), - "[���i] %s: %s �P�M���i", reason, crime); + "[���i] %s:%-*s �P�M", crime, 34-strlen(reason)-strlen(crime), reason); strlcpy(fhdr.owner, "[Ptt�k�|]", sizeof(fhdr.owner)); append_record("boards/V/ViolateLaw/.DIR", &fhdr, sizeof(fhdr)); + touchbtotal(getbnum("ViolateLaw")); } -- cgit v1.2.3