summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-03-24 01:53:37 -0700
committerTingPing <tngpng@gmail.com>2013-03-24 01:53:37 -0700
commita5994cf647819f452dce400426d47f2fca52a69b (patch)
tree226e31e7f4c8ee80c5309d7619c1e9140b741c97 /src/common/text.c
parentb693c58e9f978a3f708784d50869c8420451fcf1 (diff)
parent44b381680fb9b35e3c8685fa5438dfba5d5e050d (diff)
Merge pull request #445 from TingPing/ulistcolors
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 33ef3c9e..8196cc03 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -2006,8 +2006,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;
 
@@ -2030,7 +2030,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 */
 	}