summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-19 09:14:34 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-19 09:14:56 +0200
commitef81a24f643a5373c751ff827ccf07e479a5e75f (patch)
treef9f370425e0b2ac46f97900bc3b0fdd4f057faa0 /src/common/text.c
parent89584e565ae97a0095c8519b0c519d0a01c49d9d (diff)
Add option to retain colors in scrollback
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 25dd5cf1..c437634e 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -338,7 +338,10 @@ scrollback_load (session *sess)
 			text = strchr (buf + 3, ' ');
 			if (text)
 			{
-				text = strip_color (text + 1, -1, STRIP_COLOR);
+				if (prefs.text_replay_strip_color)
+				{
+					text = strip_color (text + 1, -1, STRIP_COLOR);
+				}
 				fe_print_text (sess, text, stamp);
 				g_free (text);
 			}
@@ -373,7 +376,10 @@ scrollback_load (session *sess)
 			text = strchr (buf + 3, ' ');
 			if (text)
 			{
-				text = strip_color (text + 1, -1, STRIP_COLOR);
+				if (prefs.text_replay_strip_color)
+				{
+					text = strip_color (text + 1, -1, STRIP_COLOR);
+				}
 				cleaned_text = text_replace_non_bmp (text, -1, &cleaned_len);
 				if (cleaned_text != NULL)
 				{