From 28213391e5a961e0c407e0cbac05129ce4ee865e Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 24 Sep 2009 10:08:55 +0000 Subject: * refine user->customize * allow setting "dbcs evil client repeat detection" git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4881 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/telnet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/telnet.c') diff --git a/mbbsd/telnet.c b/mbbsd/telnet.c index 22ad6234..4e7daf53 100644 --- a/mbbsd/telnet.c +++ b/mbbsd/telnet.c @@ -43,7 +43,7 @@ telnet_init(int do_init_cmd) telnet_ctx_send_init_cmds(ctx); } -#if defined(DBCSAWARE) && !defined(DBCSAWARE_SKIP_EVIL_REPEATS_CHECK) +#if defined(DBCSAWARE) ssize_t dbcs_detect_evil_repeats(unsigned char *buf, ssize_t l) { @@ -122,8 +122,8 @@ tty_read(unsigned char *buf, size_t max) if(l == 0 || (l < 0 && !(errno == EINTR || errno == EAGAIN))) abort_bbs(0); -#if defined(DBCSAWARE) && !defined(DBCSAWARE_SKIP_EVIL_REPEATS_CHECK) - if (ISDBCSAWARE()) +#if defined(DBCSAWARE) + if (ISDBCSAWARE() && HasUserFlag(UF_DBCS_DROP_REPEAT)) l = dbcs_detect_evil_repeats(buf, l); #endif -- cgit v1.2.3