Mercurial > hg > nnchat
diff ui.c @ 527:436e86afa70a
If username has not yet been set, show - instead of (null).
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 05 Jun 2012 23:59:49 +0300 |
parents | ef5a2aa8382b |
children | 379e361f1144 |
line wrap: on
line diff
--- a/ui.c Tue Jun 05 23:59:34 2012 +0300 +++ b/ui.c Tue Jun 05 23:59:49 2012 +0300 @@ -402,7 +402,7 @@ snprintf(tmpStr, sizeof(tmpStr), " %s | %s | #%06x | WIN: %d: %s / %d | ", tmpStamp, - username, + username != NULL ? username : "-", usercolor, currWin->num + 1, currWin->id != NULL ? currWin->id : "MAIN",