=== modified file 'otr.c'
|
|
|
|
| 409 | 409 | else |
| 410 | 410 | color=5; /* red */ |
| 411 | 411 | |
| 412 | | if(newmsg[0] == ',') { |
| 413 | | /* could be a problem with the color code */ |
| 414 | | /* insert a space between color spec and message */ |
| | 412 | /* keep "/me " uncolored at the beginning */ |
| | 413 | if (g_strncasecmp(newmsg, "/me ", 4) == 0) { |
| | 414 | if (newmsg[4] != '\0' && newmsg[4] == ',') { |
| | 415 | /* could be a problem with the color code */ |
| | 416 | /* insert a space between color spec and message */ |
| | 417 | colormsg = g_strdup_printf("/me \x03%.2d %s\x0F", |
| | 418 | color, newmsg + 4); |
| | 419 | } else { |
| | 420 | colormsg = g_strdup_printf("/me \x03%.2d%s\x0F", |
| | 421 | color, newmsg + 4); |
| | 422 | } |
| | 423 | } else if (newmsg[0] == ',') { |
| 415 | 424 | colormsg = g_strdup_printf("\x03%.2d %s\x0F", color, newmsg); |
| 416 | 425 | } else { |
| 417 | 426 | colormsg = g_strdup_printf("\x03%.2d%s\x0F", color, newmsg); |