summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-03-09 17:57:06 -0500
committerTingPing <tingping@tingping.se>2013-03-09 17:57:06 -0500
commit6bd96564168c66eda4d1b198e62c7bd20549205e (patch)
tree96d8e6b9024b5ea55768bc1aecee6648d22be2d4 /src/common/text.c
parentc76dedd9b9f7a15deaac01783bab2f2da225ebd6 (diff)
Add option to color nicknames in the userlist to match the chat
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 0bef377c..fdf08b90 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -2081,8 +2081,8 @@ pevt_build_string (const char *input, char **output, int *max_arg)
 
 static char rcolors[] = { 19, 20, 22, 24, 25, 26, 27, 28, 29 };
 
-static int
-color_of (char *name)
+int
+text_color_of (char *name)
 {
 	int i = 0, sum = 0;
 
@@ -2105,7 +2105,7 @@ text_emit (int index, session *sess, char *a, char *b, char *c, char *d)
 
 	if (prefs.hex_text_color_nicks && (index == XP_TE_CHANACTION || index == XP_TE_CHANMSG))
 	{
-		snprintf (tbuf, sizeof (tbuf), "\003%d%s", color_of (a), a);
+		snprintf (tbuf, sizeof (tbuf), "\003%d%s", text_color_of (a), a);
 		a = tbuf;
 		stripcolor_args &= ~ARG_FLAG(1);	/* don't strip color from this argument */
 	}