summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index edfbc17f..29803db1 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1113,6 +1113,12 @@ uinfo_query(const char *orig_uid, int adminmode, int unum)
if (searchuser(genbuf, NULL)) {
outs("錯誤! 已經有同樣 ID 的使用者");
fail++;
+#if !defined(NO_CHECK_AMBIGUOUS_USERID) && defined(USE_REGCHECKD)
+ } else if ( regcheck_ambiguous_userid_exist(genbuf) > 0 &&
+ vans("此代號過於近似它人帳號,確定使用者沒有要幹壞事嗎? [y/N] ") != 'y')
+ {
+ fail++;
+#endif
} else
strlcpy(x.userid, genbuf, sizeof(x.userid));
}