comparison 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
comparison
equal deleted inserted replaced
526:ba5807ebff88 527:436e86afa70a
400 currWin->pos); 400 currWin->pos);
401 #else 401 #else
402 snprintf(tmpStr, sizeof(tmpStr), 402 snprintf(tmpStr, sizeof(tmpStr),
403 " %s | %s | #%06x | WIN: %d: %s / %d | ", 403 " %s | %s | #%06x | WIN: %d: %s / %d | ",
404 tmpStamp, 404 tmpStamp,
405 username, 405 username != NULL ? username : "-",
406 usercolor, 406 usercolor,
407 currWin->num + 1, 407 currWin->num + 1,
408 currWin->id != NULL ? currWin->id : "MAIN", 408 currWin->id != NULL ? currWin->id : "MAIN",
409 currWin->pos); 409 currWin->pos);
410 #endif 410 #endif