Changeset fc34fb5


Ignore:
Timestamp:
2009-03-13T11:31:47Z (15 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
3f81999
Parents:
673a54c
Message:

dont specify a background when coloring encrypted messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r673a54c rfc34fb5  
    350350                        else
    351351                                color=5;   /* red */
    352                         colormsg = g_strdup_printf("\x03%.2d,00%s\x0F", color, newmsg);
     352
     353                        if(newmsg[0] == ',') {
     354                                /* could be a problem with the color code */
     355                                /* insert a space between color spec and message */
     356                                colormsg = g_strdup_printf("\x03%.2d %s\x0F", color, newmsg);
     357                        } else {
     358                                colormsg = g_strdup_printf("\x03%.2d%s\x0F", color, newmsg);
     359                        }
    353360                } else {
    354361                        colormsg = g_strdup(newmsg);
Note: See TracChangeset for help on using the changeset viewer.