# HG changeset patch # User Matti Hamalainen # Date 1226433967 -7200 # Node ID afd90bbb3af67caedde3df5a3ee5326237f5420b # Parent ff5d74f0d428026188050f7cde806daa0297aad1 Colour changes. diff -r ff5d74f0d428 -r afd90bbb3af6 nnchat.c --- a/nnchat.c Tue Nov 11 21:57:51 2008 +0200 +++ b/nnchat.c Tue Nov 11 22:06:07 2008 +0200 @@ -489,9 +489,11 @@ th_free(h); th_free(t); } else { + BOOL isMine = strcmp(p, optUserName) == 0; t = stripXMLTags(s); h = decodeStr2(t); - printMsg("½5½<½%d½%s½5½>½0½ %s\n", strcmp(p, optUserName) ? 15 : 14, p, h); + printMsg("½5½<½%d½%s½5½>½%d½ %s½0½\n", + isMine ? 14 : 15, p, isMine ? 16 : 0, h); th_free(h); th_free(t); }