* WHOK: ommit empty lines.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 12 Sep 2010 09:22:50 +0000 (11:22 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 12 Sep 2010 09:22:50 +0000 (11:22 +0200)
citadel/room_ops.c

index 053971a6043e5677a3ca3b1224540c69179dd6ca..68eeb36385971435d6f9e2accc12de4f29cd7d04 100644 (file)
@@ -1177,9 +1177,10 @@ void cmd_whok(char *cmdbuf)
                cdb_free(cdbus);
 
                CtdlRoomAccess(&CC->room, &temp, &ra, NULL);
-               if ((CC->room.QRflags & QR_INUSE)
-                   && (ra & UA_KNOWN)
-                   )
+               if ((!IsEmptyStr(temp.fullname)) && 
+                   (CC->room.QRflags & QR_INUSE) &&
+                   (ra & UA_KNOWN)
+                       )
                        cprintf("%s\n", temp.fullname);
        }
        cprintf("000\n");