Mercurial > hg > nnchat
comparison nnchat.c @ 63:afd90bbb3af6
Colour changes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 11 Nov 2008 22:06:07 +0200 |
parents | ff5d74f0d428 |
children | 6a3a917303e4 |
comparison
equal
deleted
inserted
replaced
62:ff5d74f0d428 | 63:afd90bbb3af6 |
---|---|
487 printMsg("½9½* %s½0½\n", h); | 487 printMsg("½9½* %s½0½\n", h); |
488 } | 488 } |
489 th_free(h); | 489 th_free(h); |
490 th_free(t); | 490 th_free(t); |
491 } else { | 491 } else { |
492 BOOL isMine = strcmp(p, optUserName) == 0; | |
492 t = stripXMLTags(s); | 493 t = stripXMLTags(s); |
493 h = decodeStr2(t); | 494 h = decodeStr2(t); |
494 printMsg("½5½<½%d½%s½5½>½0½ %s\n", strcmp(p, optUserName) ? 15 : 14, p, h); | 495 printMsg("½5½<½%d½%s½5½>½%d½ %s½0½\n", |
496 isMine ? 14 : 15, p, isMine ? 16 : 0, h); | |
495 th_free(h); | 497 th_free(h); |
496 th_free(t); | 498 th_free(t); |
497 } | 499 } |
498 | 500 |
499 th_free(s); | 501 th_free(s); |