diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-06-02 05:05:03 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-06-02 05:05:03 +0800 |
commit | ee28b20bab4730a1dacc087f550ec35d69719dac (patch) | |
tree | 7b59ae3ffbaa8a8f9311e8602bf73148cc6b73dd | |
parent | f544847b7d7fb9ece4290268d90d1e5e833de5b9 (diff) | |
download | pttbbs-Kuolin.test@2043.tar pttbbs-Kuolin.test@2043.tar.gz pttbbs-Kuolin.test@2043.tar.bz2 pttbbs-Kuolin.test@2043.tar.lz pttbbs-Kuolin.test@2043.tar.xz pttbbs-Kuolin.test@2043.tar.zst pttbbs-Kuolin.test@2043.zip |
re-add anti-robot in editKuolin.test@2043
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2043 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/edit.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 6b8d900e..4950598f 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1686,8 +1686,19 @@ vedit(char *fpath, int saveheader, int *islocal) } } if (interval && interval == tin) + { count++; - else { + if(count>500) + { + log_file("etc/illegal_money", LOG_CREAT | LOG_VF, + "\033[1;33;46m%s \033[37;45m 用機器人發表文章 \033[37m %s\033[m\n", + cuser.userid, ctime(&now)); + post_violatelaw(cuser.userid, "Ptt系統警察", + "用機器人發表文章", "強制離站"); + abort_bbs(0); + } + } + else if(interval){ count = 0; tin = interval; } |