Mercurial > hg > nnchat
changeset 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 | ba5807ebff88 |
children | 4c06bc545b1a |
files | ui.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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",