summary refs log tree commit diff stats
path: root/src/common/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/server.c')
-rw-r--r--src/common/server.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/server.c b/src/common/server.c
index 53e877e3..fb50cc8a 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -402,10 +402,13 @@ server_inline (server *serv, char *line, int len)
 	}
 
 #ifdef WIN32
-	cleaned_line = text_replace_non_bmp (line, len, &cleaned_len);
-	if (cleaned_line != NULL ) {
-		line = cleaned_line;
-		len = cleaned_len;
+	if (prefs.text_nonbmp)
+	{
+		cleaned_line = text_replace_non_bmp (line, len, &cleaned_len);
+		if (cleaned_line != NULL ) {
+			line = cleaned_line;
+			len = cleaned_len;
+		}
 	}
 #endif