I -think- you will run into issues if someone uses color in your objects, or whatever is being handled by protocol. If you do run into trouble, we wrote strip_colors() as a simple way to get rid of colors from a string:
Code:
/* so it turns out that write_to_descriptor can't handle protocol info
* so i made this simple function to strip color codes -zusuk
*/
void strip_colors(char *str) {
char *p = str;
char *n = str;
while (p && *p) {
if (*p == '@') {
if (*(p + 1) != '@') {
p += 2;
} else {
p++;
*n++ = *p++;
}
} else if (*p == '\t') {
if (*(p + 1) != '\t') {
p += 2;
} else {
p++;
*n++ = *p++;
}
} else {
*n++ = *p++;
}
}
*n = '\0';
}
Could be a non-issue for you, since we are a mix of code bases.