summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-06-06 17:47:01 -0400
committerTingPing <tingping@tingping.se>2013-06-06 17:47:01 -0400
commitcf505b850bb02e7b691fbd5f48618d66fe55bc0a (patch)
tree83395d6ac39c5b90c21a2664edd001425f961bbc /src/common/text.c
parentfd762303b0c655f77ddff3004bfaaf11cc6c4e0d (diff)
Add chanopt for stripping colors
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 98ddd775..3d1c9280 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -2043,7 +2043,7 @@ text_emit (int index, session *sess, char *a, char *b, char *c, char *d)
 {
 	char *word[PDIWORDS];
 	int i;
-	unsigned int stripcolor_args = (prefs.hex_text_stripcolor_msg ? 0xFFFFFFFF : 0);
+	unsigned int stripcolor_args = (chanopt_is_set (prefs.hex_text_stripcolor_msg, sess->text_strip) ? 0xFFFFFFFF : 0);
 	char tbuf[NICKLEN + 4];
 
 	if (prefs.hex_text_color_nicks && (index == XP_TE_CHANACTION || index == XP_TE_CHANMSG))