From ee28b20bab4730a1dacc087f550ec35d69719dac Mon Sep 17 00:00:00 2001 From: ptt Date: Tue, 1 Jun 2004 21:05:03 +0000 Subject: re-add anti-robot in edit git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2043 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3