From 90ce902dc3f69f7a933465094e61506eb699e685 Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Sat, 7 Jul 2007 14:10:24 +0000 Subject: [PATCH] userlist: removed (not logged in) message on iconbar --- webcit/summary.c | 12 +++++++----- webcit/webcit.h | 5 +++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/webcit/summary.c b/webcit/summary.c index 30b168c3e..adc70ec5b 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -85,11 +85,13 @@ void wholist_section(void) { serv_getln(buf, sizeof buf); if (buf[0] == '1') while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) { extract_token(user, buf, 1, '|', sizeof user); - wprintf("
  • "); - escputs(user); - wprintf("
  • "); + if (strcmp(user, NLI)) { + wprintf("
  • "); + escputs(user); + wprintf("
  • "); + } } } diff --git a/webcit/webcit.h b/webcit/webcit.h index d2b7e94ea..a5f5f1011 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -200,6 +200,11 @@ extern locale_t wc_locales[]; US_NOPROMPT | US_DISAPPEAR | US_PAGINATOR | \ US_FLOORS | US_COLOR | US_PROMPTCTL ) +/* + * NLI is the string that shows up in a who's online listing for sessions + * that are active, but for which no user has yet authenticated. + */ +#define NLI "(not logged in)" /** \brief Linked list of lines appearing in an HTTP client request */ -- 2.39.2