diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-13 03:23:02 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-10-13 03:23:02 +0800 |
commit | 373fce8dc67999476b2786c95a7bceeead6dcc09 (patch) | |
tree | ba9075c22ae7c8112344a82597e9681537401d7e | |
parent | 45dfa7f9ddd69c25cb32f932db4b2f7640471529 (diff) | |
download | pttbbs-373fce8dc67999476b2786c95a7bceeead6dcc09.tar pttbbs-373fce8dc67999476b2786c95a7bceeead6dcc09.tar.gz pttbbs-373fce8dc67999476b2786c95a7bceeead6dcc09.tar.bz2 pttbbs-373fce8dc67999476b2786c95a7bceeead6dcc09.tar.lz pttbbs-373fce8dc67999476b2786c95a7bceeead6dcc09.tar.xz pttbbs-373fce8dc67999476b2786c95a7bceeead6dcc09.tar.zst pttbbs-373fce8dc67999476b2786c95a7bceeead6dcc09.zip |
1. Add reason on post title at voilationLaw.
2. Move down the threshold of determining robot posting.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2245 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/edit.c | 6 | ||||
-rw-r--r-- | mbbsd/syspost.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 8abf2f19..390901b0 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1783,10 +1783,10 @@ vedit(char *fpath, int saveheader, int *islocal) last = (char)ch; } } - if (interval && interval == tin) - { + if (interval && (interval > tin-2) && (interval < tin+2)) + { // Ptt : +- 1 秒也算 count++; - if(count>500) + if(count>60) { log_file("etc/illegal_money", LOG_CREAT | LOG_VF, "\033[1;33;46m%s \033[37;45m 用機器人發表文章 \033[37m %s\033[m\n", diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index 284e5fb4..033ddb2e 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -134,7 +134,7 @@ 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), - "[報告] %-20s 違法判決報告", crime); + "[報告] %s: %s 判決報告", reason, crime); strlcpy(fhdr.owner, "[Ptt法院]", sizeof(fhdr.owner)); append_record("boards/V/ViolateLaw/.DIR", &fhdr, sizeof(fhdr)); |