Small fix to previous commit. The 'narrow' wholist
authorArt Cancro <ajc@citadel.org>
Thu, 10 May 2007 04:10:58 +0000 (04:10 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 10 May 2007 04:10:58 +0000 (04:10 +0000)
is displayed if the screen width is fewer than 80 characters,
not 50.

citadel/citadel.c

index 92bf86b54292491432d867832b4cdc06f742c303..49da9727da642bb28111f69af645346796e08138 100644 (file)
@@ -1213,10 +1213,12 @@ void who_is_online(CtdlIPC *ipc, int longlist)
        if (!longlist) {
                color(BRIGHT_WHITE);
                pprintf("           User Name               Room          ");
-               if (screenwidth >= 50) pprintf(" Idle        From host\n");
+               if (screenwidth >= 80) pprintf(" Idle        From host");
+               pprintf("\n");
                color(DIM_WHITE);
                pprintf("   ------------------------- --------------------");
-               if (screenwidth >= 50) pprintf(" ---- ------------------------\n");
+               if (screenwidth >= 80) pprintf(" ---- ------------------------");
+               pprintf("\n");
        }
        r = CtdlIPCOnlineUsers(ipc, &listing, &timenow, buf);
        listing = SortOnlineUsers(listing);
@@ -1286,7 +1288,7 @@ void who_is_online(CtdlIPC *ipc, int longlist)
                                        roomname[20] = 0;
                                        pprintf("%-20s", roomname);
 
-                                       if (screenwidth >= 50) {
+                                       if (screenwidth >= 80) {
                                                pprintf(" ");
                                                if (idletime > rc_idle_threshold) {
                                                        /* over 1000d, must be gone fishing */