Mercurial > hg > nnchat
changeset 63:afd90bbb3af6
Colour changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 11 Nov 2008 22:06:07 +0200 |
parents | ff5d74f0d428 |
children | 6a3a917303e4 |
files | nnchat.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); }