summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-11 10:14:16 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-11 10:14:16 +0800
commit981cc6c5e052b5b37ebe5a624700ac42730d4ed0 (patch)
treeb2ca72b591e3fc7a0b1d98b28304c8e1f6a1f358
parentf787c8fdfd24555801e2be483d13baaf610298c2 (diff)
downloadpttbbs-981cc6c5e052b5b37ebe5a624700ac42730d4ed0.tar
pttbbs-981cc6c5e052b5b37ebe5a624700ac42730d4ed0.tar.gz
pttbbs-981cc6c5e052b5b37ebe5a624700ac42730d4ed0.tar.bz2
pttbbs-981cc6c5e052b5b37ebe5a624700ac42730d4ed0.tar.lz
pttbbs-981cc6c5e052b5b37ebe5a624700ac42730d4ed0.tar.xz
pttbbs-981cc6c5e052b5b37ebe5a624700ac42730d4ed0.tar.zst
pttbbs-981cc6c5e052b5b37ebe5a624700ac42730d4ed0.zip
detect evil client: some complained about the description
ok, let's change it and make guest see it everytime because guests are unknown. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2825 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/mbbsd.c4
-rw-r--r--mbbsd/user.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index e1c5e8b9..049221d2 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1007,7 +1007,11 @@ user_login(void)
restore_backup();
} else if (!strcmp(cuser.userid, STR_GUEST)) {
init_guest_info();
+#ifdef DBCSAWARE
+ u_detectDBCSAwareEvilClient();
+#else
pressanykey();
+#endif
} else {
pressanykey();
check_mailbox_quota();
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 2fea2b84..19af527f 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1694,8 +1694,8 @@ int u_detectDBCSAwareEvilClient()
clear();
move(1, 0);
outs(ANSI_RESET
- "* 本站支援自動偵測中文字的移動與編輯,但有些連線程式(如xxMan)自己會\n"
- " 偷偷處理、多送按鍵,於是便會造成" ANSI_COLOR(1;37)
+ "* 本站支援自動偵測中文字的移動與編輯,但有些連線程式(如xxMan)會\n"
+ " 自行處理、多送按鍵,於是便會造成" ANSI_COLOR(1;37)
"一次移動兩個中文字的現象。" ANSI_RESET "\n\n"
"* 讓連線程式處理移動容易造成許\多顯示及移動上的問題,所以我們建議您\n"
" 關閉該程式上的此項設定(通常叫「偵測(全型或雙位元組)中文」),\n"
@@ -1738,13 +1738,13 @@ int u_detectDBCSAwareEvilClient()
// if (num_in_buf() > 0)
{
/* evil dbcs aware client */
- outs("很遺憾,您的連線程式還是會自己亂動。"
- "若日後因此造成您瀏覽上的問題本站恕不處理。\n\n"
+ outs("您的連線程式仍會自行處理游標移動。\n\n"
+ // "若日後因此造成瀏覽上的問題本站恕不處理。\n\n"
"已設定為「讓您的連線程式處理游標移動」。\n");
ret = 1;
} else {
/* good non-dbcs aware client */
- outs("您的連線程式似乎不會亂送按鍵。\n\n"
+ outs("您的連線程式似乎不會不會多亂送按鍵。\n\n"
"已設定為「讓 BBS 伺服器直接處理游標移動」。\n");
ret = 0;
}