summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-03-20 09:45:45 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-03-20 09:45:45 +0800
commit9453ef12ab6a9a982b96db062230da977688b430 (patch)
tree7836f256b24fa0ac58047e8ac4382b5c2378a11e
parent1cdc0a86dbb7e5c7957e2e02c583718901491957 (diff)
downloadpttbbs-9453ef12ab6a9a982b96db062230da977688b430.tar
pttbbs-9453ef12ab6a9a982b96db062230da977688b430.tar.gz
pttbbs-9453ef12ab6a9a982b96db062230da977688b430.tar.bz2
pttbbs-9453ef12ab6a9a982b96db062230da977688b430.tar.lz
pttbbs-9453ef12ab6a9a982b96db062230da977688b430.tar.xz
pttbbs-9453ef12ab6a9a982b96db062230da977688b430.tar.zst
pttbbs-9453ef12ab6a9a982b96db062230da977688b430.zip
Request captcha for "bad_master".
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5812 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/angel.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/angel.c b/pttbbs/mbbsd/angel.c
index 6d0ccdae..730e18a5 100644
--- a/pttbbs/mbbsd/angel.c
+++ b/pttbbs/mbbsd/angel.c
@@ -347,6 +347,16 @@ do_changeangel(int force) {
return 0;
}
#endif
+ {
+ static int is_bad_master = -1;
+ if (is_bad_master < 0) {
+ char bad_master_file[PATHLEN];
+ setuserfile(bad_master_file, ".bad_master");
+ is_bad_master = dashf(bad_master_file);
+ }
+ if (is_bad_master && !verify_captcha("為避免大量非正常更換小天使,\n"))
+ return 0;
+ }
mvouts(b_lines - 3, 0, "\n"
"請注意若未呼叫過目前的小天使就申請更換,很可能會再換到同個天使\n");