From 4621028ffd6a8acbc2bc76c528f11315812c7049 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 28 Sep 2009 07:37:04 +0000 Subject: * drop 'dbcsaware detection' ui, because we have the better 'repeat detection'. * also changed UF_DBCSAWARE to UF_DBCS_AWARE git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4886 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 4 ---- include/uflags.h | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index 3c2895a2..5acd4877 100644 --- a/include/proto.h +++ b/include/proto.h @@ -621,10 +621,6 @@ int u_editplan(void); int u_editsig(void); int u_cloak(void); int u_list(void); -#ifdef DBCSAWARE -int u_detectDBCSAwareEvilClient(); -#endif -#define ISDBCSAWARE() (cuser.uflag & UF_DBCSAWARE) /* vote */ void b_suckinfile(FILE *fp, const char *fname); diff --git a/include/uflags.h b/include/uflags.h index 8f71c05b..532138c0 100644 --- a/include/uflags.h +++ b/include/uflags.h @@ -15,7 +15,7 @@ #define UF_ADBANNER 0x00000040 // (was: MOVIE_FLAG, true if show advertisement banner #define UF_ADBANNER_USONG 0x00000080 // true if show user songs in banner // #define UF_MIND 0x00000100 // deprecated: true if mind search mode open <-Heat -#define UF_DBCSAWARE 0x00000200 // true if DBCS-aware enabled. +#define UF_DBCS_AWARE 0x00000200 // true if DBCS-aware enabled. #define UF_DBCS_NOINTRESC 0x00000400 // no Escapes interupting DBCS characters #define UF_DBCS_DROP_REPEAT 0x00000800 // detect and drop repeated input from evil clients // #define UF_DBCS_??? 0x00000800 // reserved @@ -46,6 +46,7 @@ (x != 'n') : \ (x == 'y') ) #define REJECT_OUTTAMAIL(x) (x.uflag & UF_REJ_OUTTAMAIL) +#define ISDBCSAWARE() (cuser.uflag & UF_DBCS_AWARE) /* -------------------- userec_t.uflag2 (unsigned int) */ -- cgit v1.2.3