I didn't initialize current time (it worked on my box ?)
authorThierry Pasqualier <thierry@uncensored.citadel.org>
Mon, 16 Jul 2007 08:07:29 +0000 (08:07 +0000)
committerThierry Pasqualier <thierry@uncensored.citadel.org>
Mon, 16 Jul 2007 08:07:29 +0000 (08:07 +0000)
Hope it's work now, sorry.

webcit/summary.c

index 4efedece524d38b368f209924c1de9aa01cadc40..d3457e71af395c23d9927a97fd631001eb4daa72 100644 (file)
@@ -83,6 +83,15 @@ void wholist_section(void) {
         time_t last_activity;
         time_t now;
 
+       serv_puts("TIME");
+       serv_getln(buf, sizeof buf);
+       if (buf[0] == '2') {
+               now = extract_long(&buf[4], 0);
+       }
+       else {
+               now = time(NULL);
+       }
+
        serv_puts("RWHO");
        serv_getln(buf, sizeof buf);
        if (buf[0] == '1') while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) {