From 6eb4d71844ef795f3efa46d740e370fd28ae59d1 Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Mon, 9 Jul 2007 06:54:50 +0000 Subject: [PATCH] iconbar : mark active/inactive user with CSS --- webcit/summary.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/webcit/summary.c b/webcit/summary.c index adc70ec5b..3809a822c 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -80,13 +80,23 @@ void new_messages_section(void) { void wholist_section(void) { char buf[SIZ]; char user[SIZ]; + time_t last_activity; + time_t now; serv_puts("RWHO"); 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); + last_activity = extract_long(buf, 5); if (strcmp(user, NLI)) { - wprintf("
  • 900L) { + wprintf("inactiveuser"); + } + else { + wprintf("activeuser"); + } + wprintf("\">"); escputs(user); -- 2.39.2