summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/edit.c13
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;
}