From d1116efedeb0f81c62a431aa2be7b2c6a4c042f4 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 23 Aug 2006 01:39:37 +0000
Subject: [PATCH] Clarified the auto-ANSI-detection logic a little by
 re-ordering the expressions in the if() - no functional change.

---
 src/sbbs3/inkey.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/inkey.cpp b/src/sbbs3/inkey.cpp
index 39b3dd5b2b..0606018246 100644
--- a/src/sbbs3/inkey.cpp
+++ b/src/sbbs3/inkey.cpp
@@ -8,7 +8,7 @@
  * @format.tab-size 4		(Plain Text/Source Code File Header)			*
  * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
  *																			*
- * Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html		*
+ * Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html		*
  *																			*
  * This program is free software; you can redistribute it and/or			*
  * modify it under the terms of the GNU General Public License				*
@@ -260,7 +260,7 @@ char sbbs_t::handle_ctrlkey(char ch, long mode)
 			}
 			i=j=0;
 			autoterm|=ANSI; 			/* <ESC>[x means they have ANSI */
-			if(!(useron.misc&ANSI) && useron.misc&AUTOTERM && sys_status&SS_USERON
+			if(sys_status&SS_USERON && useron.misc&AUTOTERM && !(useron.misc&ANSI)
 				&& useron.number) {
 				useron.misc|=ANSI;
 				putuserrec(&cfg,useron.number,U_MISC,8,ultoa(useron.misc,str,16)); 
-- 
GitLab